Class WatchlistInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
-
- com.azure.resourcemanager.securityinsights.fluent.models.WatchlistInner
-
public final class WatchlistInner extends ResourceWithEtag
Represents a Watchlist in Azure Security Insights.
-
-
Constructor Summary
Constructors Constructor Description WatchlistInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
contentType()
Get the contentType property: The content type of the raw content.OffsetDateTime
created()
Get the created property: The time the watchlist was created.UserInfo
createdBy()
Get the createdBy property: Describes a user that created the watchlist.Duration
defaultDuration()
Get the defaultDuration property: The default duration of a watchlist (in ISO 8601 duration format).String
description()
Get the description property: A description of the watchlist.String
displayName()
Get the displayName property: The display name of the watchlist.Boolean
isDeleted()
Get the isDeleted property: A flag that indicates if the watchlist is deleted or not.String
itemsSearchKey()
Get the itemsSearchKey property: The search key is used to optimize query performance when using watchlists for joins with other data.List<String>
labels()
Get the labels property: List of labels relevant to this watchlist.Integer
numberOfLinesToSkip()
Get the numberOfLinesToSkip property: The number of lines in a csv/tsv content to skip before the header.String
provider()
Get the provider property: The provider of the watchlist.ProvisioningState
provisioningState()
Get the provisioningState property: The provisioning state of the watchlist resource.String
rawContent()
Get the rawContent property: The raw content that represents to watchlist items to create.String
sasUri()
Get the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is located and from which the watchlist and its items will be created.String
source()
Get the source property: The filename of the watchlist, called 'source'.SourceType
sourceType()
Get the sourceType property: The sourceType of the watchlist.String
tenantId()
Get the tenantId property: The tenantId where the watchlist belongs to.OffsetDateTime
updated()
Get the updated property: The last time the watchlist was updated.UserInfo
updatedBy()
Get the updatedBy property: Describes a user that updated the watchlist.String
uploadStatus()
Get the uploadStatus property: The status of the Watchlist upload : New, InProgress or Complete.void
validate()
Validates the instance.String
watchlistAlias()
Get the watchlistAlias property: The alias of the watchlist.String
watchlistId()
Get the watchlistId property: The id (a Guid) of the watchlist.String
watchlistType()
Get the watchlistType property: The type of the watchlist.WatchlistInner
withContentType(String contentType)
Set the contentType property: The content type of the raw content.WatchlistInner
withCreated(OffsetDateTime created)
Set the created property: The time the watchlist was created.WatchlistInner
withCreatedBy(UserInfo createdBy)
Set the createdBy property: Describes a user that created the watchlist.WatchlistInner
withDefaultDuration(Duration defaultDuration)
Set the defaultDuration property: The default duration of a watchlist (in ISO 8601 duration format).WatchlistInner
withDescription(String description)
Set the description property: A description of the watchlist.WatchlistInner
withDisplayName(String displayName)
Set the displayName property: The display name of the watchlist.WatchlistInner
withEtag(String etag)
Set the etag property: Etag of the azure resource.WatchlistInner
withIsDeleted(Boolean isDeleted)
Set the isDeleted property: A flag that indicates if the watchlist is deleted or not.WatchlistInner
withItemsSearchKey(String itemsSearchKey)
Set the itemsSearchKey property: The search key is used to optimize query performance when using watchlists for joins with other data.WatchlistInner
withLabels(List<String> labels)
Set the labels property: List of labels relevant to this watchlist.WatchlistInner
withNumberOfLinesToSkip(Integer numberOfLinesToSkip)
Set the numberOfLinesToSkip property: The number of lines in a csv/tsv content to skip before the header.WatchlistInner
withProvider(String provider)
Set the provider property: The provider of the watchlist.WatchlistInner
withRawContent(String rawContent)
Set the rawContent property: The raw content that represents to watchlist items to create.WatchlistInner
withSasUri(String sasUri)
Set the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is located and from which the watchlist and its items will be created.WatchlistInner
withSource(String source)
Set the source property: The filename of the watchlist, called 'source'.WatchlistInner
withSourceType(SourceType sourceType)
Set the sourceType property: The sourceType of the watchlist.WatchlistInner
withTenantId(String tenantId)
Set the tenantId property: The tenantId where the watchlist belongs to.WatchlistInner
withUpdated(OffsetDateTime updated)
Set the updated property: The last time the watchlist was updated.WatchlistInner
withUpdatedBy(UserInfo updatedBy)
Set the updatedBy property: Describes a user that updated the watchlist.WatchlistInner
withUploadStatus(String uploadStatus)
Set the uploadStatus property: The status of the Watchlist upload : New, InProgress or Complete.WatchlistInner
withWatchlistAlias(String watchlistAlias)
Set the watchlistAlias property: The alias of the watchlist.WatchlistInner
withWatchlistId(String watchlistId)
Set the watchlistId property: The id (a Guid) of the watchlist.WatchlistInner
withWatchlistType(String watchlistType)
Set the watchlistType property: The type of the watchlist.-
Methods inherited from class com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
etag, systemData
-
-
-
-
Method Detail
-
withEtag
public WatchlistInner withEtag(String etag)
Set the etag property: Etag of the azure resource.- Overrides:
withEtag
in classResourceWithEtag
- Parameters:
etag
- the etag value to set.- Returns:
- the ResourceWithEtag object itself.
-
watchlistId
public String watchlistId()
Get the watchlistId property: The id (a Guid) of the watchlist.- Returns:
- the watchlistId value.
-
withWatchlistId
public WatchlistInner withWatchlistId(String watchlistId)
Set the watchlistId property: The id (a Guid) of the watchlist.- Parameters:
watchlistId
- the watchlistId value to set.- Returns:
- the WatchlistInner object itself.
-
displayName
public String displayName()
Get the displayName property: The display name of the watchlist.- Returns:
- the displayName value.
-
withDisplayName
public WatchlistInner withDisplayName(String displayName)
Set the displayName property: The display name of the watchlist.- Parameters:
displayName
- the displayName value to set.- Returns:
- the WatchlistInner object itself.
-
provider
public String provider()
Get the provider property: The provider of the watchlist.- Returns:
- the provider value.
-
withProvider
public WatchlistInner withProvider(String provider)
Set the provider property: The provider of the watchlist.- Parameters:
provider
- the provider value to set.- Returns:
- the WatchlistInner object itself.
-
source
public String source()
Get the source property: The filename of the watchlist, called 'source'.- Returns:
- the source value.
-
withSource
public WatchlistInner withSource(String source)
Set the source property: The filename of the watchlist, called 'source'.- Parameters:
source
- the source value to set.- Returns:
- the WatchlistInner object itself.
-
sourceType
public SourceType sourceType()
Get the sourceType property: The sourceType of the watchlist.- Returns:
- the sourceType value.
-
withSourceType
public WatchlistInner withSourceType(SourceType sourceType)
Set the sourceType property: The sourceType of the watchlist.- Parameters:
sourceType
- the sourceType value to set.- Returns:
- the WatchlistInner object itself.
-
created
public OffsetDateTime created()
Get the created property: The time the watchlist was created.- Returns:
- the created value.
-
withCreated
public WatchlistInner withCreated(OffsetDateTime created)
Set the created property: The time the watchlist was created.- Parameters:
created
- the created value to set.- Returns:
- the WatchlistInner object itself.
-
updated
public OffsetDateTime updated()
Get the updated property: The last time the watchlist was updated.- Returns:
- the updated value.
-
withUpdated
public WatchlistInner withUpdated(OffsetDateTime updated)
Set the updated property: The last time the watchlist was updated.- Parameters:
updated
- the updated value to set.- Returns:
- the WatchlistInner object itself.
-
createdBy
public UserInfo createdBy()
Get the createdBy property: Describes a user that created the watchlist.- Returns:
- the createdBy value.
-
withCreatedBy
public WatchlistInner withCreatedBy(UserInfo createdBy)
Set the createdBy property: Describes a user that created the watchlist.- Parameters:
createdBy
- the createdBy value to set.- Returns:
- the WatchlistInner object itself.
-
updatedBy
public UserInfo updatedBy()
Get the updatedBy property: Describes a user that updated the watchlist.- Returns:
- the updatedBy value.
-
withUpdatedBy
public WatchlistInner withUpdatedBy(UserInfo updatedBy)
Set the updatedBy property: Describes a user that updated the watchlist.- Parameters:
updatedBy
- the updatedBy value to set.- Returns:
- the WatchlistInner object itself.
-
description
public String description()
Get the description property: A description of the watchlist.- Returns:
- the description value.
-
withDescription
public WatchlistInner withDescription(String description)
Set the description property: A description of the watchlist.- Parameters:
description
- the description value to set.- Returns:
- the WatchlistInner object itself.
-
watchlistType
public String watchlistType()
Get the watchlistType property: The type of the watchlist.- Returns:
- the watchlistType value.
-
withWatchlistType
public WatchlistInner withWatchlistType(String watchlistType)
Set the watchlistType property: The type of the watchlist.- Parameters:
watchlistType
- the watchlistType value to set.- Returns:
- the WatchlistInner object itself.
-
watchlistAlias
public String watchlistAlias()
Get the watchlistAlias property: The alias of the watchlist.- Returns:
- the watchlistAlias value.
-
withWatchlistAlias
public WatchlistInner withWatchlistAlias(String watchlistAlias)
Set the watchlistAlias property: The alias of the watchlist.- Parameters:
watchlistAlias
- the watchlistAlias value to set.- Returns:
- the WatchlistInner object itself.
-
isDeleted
public Boolean isDeleted()
Get the isDeleted property: A flag that indicates if the watchlist is deleted or not.- Returns:
- the isDeleted value.
-
withIsDeleted
public WatchlistInner withIsDeleted(Boolean isDeleted)
Set the isDeleted property: A flag that indicates if the watchlist is deleted or not.- Parameters:
isDeleted
- the isDeleted value to set.- Returns:
- the WatchlistInner object itself.
-
labels
public List<String> labels()
Get the labels property: List of labels relevant to this watchlist.- Returns:
- the labels value.
-
withLabels
public WatchlistInner withLabels(List<String> labels)
Set the labels property: List of labels relevant to this watchlist.- Parameters:
labels
- the labels value to set.- Returns:
- the WatchlistInner object itself.
-
defaultDuration
public Duration defaultDuration()
Get the defaultDuration property: The default duration of a watchlist (in ISO 8601 duration format).- Returns:
- the defaultDuration value.
-
withDefaultDuration
public WatchlistInner withDefaultDuration(Duration defaultDuration)
Set the defaultDuration property: The default duration of a watchlist (in ISO 8601 duration format).- Parameters:
defaultDuration
- the defaultDuration value to set.- Returns:
- the WatchlistInner object itself.
-
tenantId
public String tenantId()
Get the tenantId property: The tenantId where the watchlist belongs to.- Returns:
- the tenantId value.
-
withTenantId
public WatchlistInner withTenantId(String tenantId)
Set the tenantId property: The tenantId where the watchlist belongs to.- Parameters:
tenantId
- the tenantId value to set.- Returns:
- the WatchlistInner object itself.
-
numberOfLinesToSkip
public Integer numberOfLinesToSkip()
Get the numberOfLinesToSkip property: The number of lines in a csv/tsv content to skip before the header.- Returns:
- the numberOfLinesToSkip value.
-
withNumberOfLinesToSkip
public WatchlistInner withNumberOfLinesToSkip(Integer numberOfLinesToSkip)
Set the numberOfLinesToSkip property: The number of lines in a csv/tsv content to skip before the header.- Parameters:
numberOfLinesToSkip
- the numberOfLinesToSkip value to set.- Returns:
- the WatchlistInner object itself.
-
rawContent
public String rawContent()
Get the rawContent property: The raw content that represents to watchlist items to create. In case of csv/tsv content type, it's the content of the file that will parsed by the endpoint.- Returns:
- the rawContent value.
-
withRawContent
public WatchlistInner withRawContent(String rawContent)
Set the rawContent property: The raw content that represents to watchlist items to create. In case of csv/tsv content type, it's the content of the file that will parsed by the endpoint.- Parameters:
rawContent
- the rawContent value to set.- Returns:
- the WatchlistInner object itself.
-
sasUri
public String sasUri()
Get the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is located and from which the watchlist and its items will be created.- Returns:
- the sasUri value.
-
withSasUri
public WatchlistInner withSasUri(String sasUri)
Set the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is located and from which the watchlist and its items will be created.- Parameters:
sasUri
- the sasUri value to set.- Returns:
- the WatchlistInner object itself.
-
itemsSearchKey
public String itemsSearchKey()
Get the itemsSearchKey property: The search key is used to optimize query performance when using watchlists for joins with other data. For example, enable a column with IP addresses to be the designated SearchKey field, then use this field as the key field when joining to other event data by IP address.- Returns:
- the itemsSearchKey value.
-
withItemsSearchKey
public WatchlistInner withItemsSearchKey(String itemsSearchKey)
Set the itemsSearchKey property: The search key is used to optimize query performance when using watchlists for joins with other data. For example, enable a column with IP addresses to be the designated SearchKey field, then use this field as the key field when joining to other event data by IP address.- Parameters:
itemsSearchKey
- the itemsSearchKey value to set.- Returns:
- the WatchlistInner object itself.
-
contentType
public String contentType()
Get the contentType property: The content type of the raw content. Example : text/csv or text/tsv.- Returns:
- the contentType value.
-
withContentType
public WatchlistInner withContentType(String contentType)
Set the contentType property: The content type of the raw content. Example : text/csv or text/tsv.- Parameters:
contentType
- the contentType value to set.- Returns:
- the WatchlistInner object itself.
-
uploadStatus
public String uploadStatus()
Get the uploadStatus property: The status of the Watchlist upload : New, InProgress or Complete. Pls note : When a Watchlist upload status is equal to InProgress, the Watchlist cannot be deleted.- Returns:
- the uploadStatus value.
-
withUploadStatus
public WatchlistInner withUploadStatus(String uploadStatus)
Set the uploadStatus property: The status of the Watchlist upload : New, InProgress or Complete. Pls note : When a Watchlist upload status is equal to InProgress, the Watchlist cannot be deleted.- Parameters:
uploadStatus
- the uploadStatus value to set.- Returns:
- the WatchlistInner object itself.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the watchlist resource.- Returns:
- the provisioningState value.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classResourceWithEtag
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-