Class WorkspacePatch
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.loganalytics.models.AzureEntityResource
com.azure.resourcemanager.loganalytics.models.WorkspacePatch
The top level Workspace resource container.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: Workspace creation date.Get the customerId property: This is a read-only property.Get the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace.features()
Get the features property: Workspace features.Get the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.Get the modifiedDate property: Workspace modification date.Get the privateLinkScopedResources property: List of linked private link scope resources.Get the provisioningState property: The provisioning state of the workspace.Get the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.Get the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.Get the retentionInDays property: The workspace data retention in days.sku()
Get the sku property: The SKU of the workspace.tags()
Get the tags property: Resource tags.void
validate()
Validates the instance.withDefaultDataCollectionRuleResourceId
(String defaultDataCollectionRuleResourceId) Set the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace.withFeatures
(WorkspaceFeatures features) Set the features property: Workspace features.withForceCmkForQuery
(Boolean forceCmkForQuery) Set the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.withPublicNetworkAccessForIngestion
(PublicNetworkAccessType publicNetworkAccessForIngestion) Set the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.withPublicNetworkAccessForQuery
(PublicNetworkAccessType publicNetworkAccessForQuery) Set the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.withRetentionInDays
(Integer retentionInDays) Set the retentionInDays property: The workspace data retention in days.withSku
(WorkspaceSku sku) Set the sku property: The SKU of the workspace.Set the tags property: Resource tags.withWorkspaceCapping
(WorkspaceCapping workspaceCapping) Set the workspaceCapping property: The daily volume cap for ingestion.Get the workspaceCapping property: The daily volume cap for ingestion.Methods inherited from class com.azure.resourcemanager.loganalytics.models.AzureEntityResource
etag
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
WorkspacePatch
public WorkspacePatch()
-
-
Method Details
-
tags
Get the tags property: Resource tags. Optional.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags. Optional.- Parameters:
tags
- the tags value to set.- Returns:
- the WorkspacePatch object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the workspace.- Returns:
- the provisioningState value.
-
customerId
Get the customerId property: This is a read-only property. Represents the ID associated with the workspace.- Returns:
- the customerId value.
-
sku
Get the sku property: The SKU of the workspace.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU of the workspace.- Parameters:
sku
- the sku value to set.- Returns:
- the WorkspacePatch object itself.
-
retentionInDays
Get the retentionInDays property: The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.- Returns:
- the retentionInDays value.
-
withRetentionInDays
Set the retentionInDays property: The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.- Parameters:
retentionInDays
- the retentionInDays value to set.- Returns:
- the WorkspacePatch object itself.
-
workspaceCapping
Get the workspaceCapping property: The daily volume cap for ingestion.- Returns:
- the workspaceCapping value.
-
withWorkspaceCapping
Set the workspaceCapping property: The daily volume cap for ingestion.- Parameters:
workspaceCapping
- the workspaceCapping value to set.- Returns:
- the WorkspacePatch object itself.
-
createdDate
Get the createdDate property: Workspace creation date.- Returns:
- the createdDate value.
-
modifiedDate
Get the modifiedDate property: Workspace modification date.- Returns:
- the modifiedDate value.
-
publicNetworkAccessForIngestion
Get the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.- Returns:
- the publicNetworkAccessForIngestion value.
-
withPublicNetworkAccessForIngestion
public WorkspacePatch withPublicNetworkAccessForIngestion(PublicNetworkAccessType publicNetworkAccessForIngestion) Set the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.- Parameters:
publicNetworkAccessForIngestion
- the publicNetworkAccessForIngestion value to set.- Returns:
- the WorkspacePatch object itself.
-
publicNetworkAccessForQuery
Get the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.- Returns:
- the publicNetworkAccessForQuery value.
-
withPublicNetworkAccessForQuery
public WorkspacePatch withPublicNetworkAccessForQuery(PublicNetworkAccessType publicNetworkAccessForQuery) Set the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.- Parameters:
publicNetworkAccessForQuery
- the publicNetworkAccessForQuery value to set.- Returns:
- the WorkspacePatch object itself.
-
forceCmkForQuery
Get the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.- Returns:
- the forceCmkForQuery value.
-
withForceCmkForQuery
Set the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.- Parameters:
forceCmkForQuery
- the forceCmkForQuery value to set.- Returns:
- the WorkspacePatch object itself.
-
privateLinkScopedResources
Get the privateLinkScopedResources property: List of linked private link scope resources.- Returns:
- the privateLinkScopedResources value.
-
features
Get the features property: Workspace features.- Returns:
- the features value.
-
withFeatures
Set the features property: Workspace features.- Parameters:
features
- the features value to set.- Returns:
- the WorkspacePatch object itself.
-
defaultDataCollectionRuleResourceId
Get the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.- Returns:
- the defaultDataCollectionRuleResourceId value.
-
withDefaultDataCollectionRuleResourceId
public WorkspacePatch withDefaultDataCollectionRuleResourceId(String defaultDataCollectionRuleResourceId) Set the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.- Parameters:
defaultDataCollectionRuleResourceId
- the defaultDataCollectionRuleResourceId value to set.- Returns:
- the WorkspacePatch object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAzureEntityResource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-