Class WorkspacePatch
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.loganalytics.models.AzureEntityResource
com.azure.resourcemanager.loganalytics.models.WorkspacePatch
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
The top level Workspace resource container.
-
Constructor Summary
Constructors -
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.etag()Get the etag property: Resource Etag.failover()Get the failover property: workspace failover properties.features()Get the features property: Workspace features.Get the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.static WorkspacePatchfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspacePatch from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.identity()Get the identity property: The identity of the resource.Get the modifiedDate property: Workspace modification date.name()Get the name property: The name of the resource.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 replication property: workspace replication properties.Get the retentionInDays property: The workspace data retention in days.sku()Get the sku property: The SKU of the workspace.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.tags()Get the tags property: Resource tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.withDefaultDataCollectionRuleResourceId(String defaultDataCollectionRuleResourceId) Set the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use for this workspace.withFailover(WorkspaceFailoverProperties failover) Set the failover property: workspace failover properties.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.withIdentity(Identity identity) Set the identity property: The identity of the resource.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.withReplication(WorkspaceReplicationProperties replication) Set the replication property: workspace replication properties.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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WorkspacePatch
public WorkspacePatch()Creates an instance of WorkspacePatch class.
-
-
Method Details
-
identity
Get the identity property: The identity of the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the resource.- Parameters:
identity- the identity value to set.- Returns:
- the WorkspacePatch object itself.
-
tags
-
withTags
Set the tags property: Resource tags. Optional.- Parameters:
tags- the tags value to set.- Returns:
- the WorkspacePatch object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Overrides:
systemDatain classAzureEntityResource- Returns:
- the systemData value.
-
etag
Get the etag property: Resource Etag.- Overrides:
etagin classAzureEntityResource- Returns:
- the etag value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classAzureEntityResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classAzureEntityResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classAzureEntityResource- Returns:
- the id value.
-
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
-
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.
-
replication
Get the replication property: workspace replication properties.- Returns:
- the replication value.
-
withReplication
Set the replication property: workspace replication properties.- Parameters:
replication- the replication value to set.- Returns:
- the WorkspacePatch object itself.
-
failover
Get the failover property: workspace failover properties.- Returns:
- the failover value.
-
withFailover
Set the failover property: workspace failover properties.- Parameters:
failover- the failover value to set.- Returns:
- the WorkspacePatch object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classAzureEntityResource- Throws:
IOException
-
fromJson
Reads an instance of WorkspacePatch from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspacePatch if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WorkspacePatch.
-