Class WorkspaceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class WorkspaceInner
extends com.azure.core.management.Resource
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: The etag of the workspace.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 WorkspaceInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceInner 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.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.Set the etag property: The etag of the 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.withLocation(String location) 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.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.core.management.Resource
location, tagsMethods 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
-
WorkspaceInner
public WorkspaceInner()Creates an instance of WorkspaceInner 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 WorkspaceInner object itself.
-
etag
-
withEtag
Set the etag property: The etag of the workspace.- Parameters:
etag- the etag value to set.- Returns:
- the WorkspaceInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner object itself.
-
publicNetworkAccessForQuery
Get the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.- Returns:
- the publicNetworkAccessForQuery value.
-
withPublicNetworkAccessForQuery
public WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner 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 WorkspaceInner object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of WorkspaceInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspaceInner 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 WorkspaceInner.
-