Class Gen1EnvironmentCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.CreateOrUpdateTrackedResourceProperties
com.azure.resourcemanager.timeseriesinsights.models.EnvironmentCreateOrUpdateParameters
com.azure.resourcemanager.timeseriesinsights.models.Gen1EnvironmentCreateOrUpdateParameters
public final class Gen1EnvironmentCreateOrUpdateParameters
extends EnvironmentCreateOrUpdateParameters
Parameters supplied to the Create or Update Environment operation for a Gen1 environment.
-
Constructor Summary
ConstructorDescriptionCreates an instance of Gen1EnvironmentCreateOrUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataRetentionTime property: ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.Get the partitionKeyProperties property: The list of event properties which will be used to partition data in the environment.Get the storageLimitExceededBehavior property: The behavior the Time Series Insights service should take when the environment's capacity has been exceeded.void
validate()
Validates the instance.withDataRetentionTime
(Duration dataRetentionTime) Set the dataRetentionTime property: ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.withLocation
(String location) Set the location property: The location of the resource.withPartitionKeyProperties
(List<TimeSeriesIdProperty> partitionKeyProperties) Set the partitionKeyProperties property: The list of event properties which will be used to partition data in the environment.Set the sku property: The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1).withStorageLimitExceededBehavior
(StorageLimitExceededBehavior storageLimitExceededBehavior) Set the storageLimitExceededBehavior property: The behavior the Time Series Insights service should take when the environment's capacity has been exceeded.Set the tags property: Key-value pairs of additional properties for the resource.Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.EnvironmentCreateOrUpdateParameters
sku
Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.CreateOrUpdateTrackedResourceProperties
location, tags
-
Constructor Details
-
Gen1EnvironmentCreateOrUpdateParameters
public Gen1EnvironmentCreateOrUpdateParameters()Creates an instance of Gen1EnvironmentCreateOrUpdateParameters class.
-
-
Method Details
-
withSku
Set the sku property: The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.- Overrides:
withSku
in classEnvironmentCreateOrUpdateParameters
- Parameters:
sku
- the sku value to set.- Returns:
- the EnvironmentCreateOrUpdateParameters object itself.
-
withLocation
Set the location property: The location of the resource.- Overrides:
withLocation
in classEnvironmentCreateOrUpdateParameters
- Parameters:
location
- the location value to set.- Returns:
- the CreateOrUpdateTrackedResourceProperties object itself.
-
withTags
Set the tags property: Key-value pairs of additional properties for the resource.- Overrides:
withTags
in classEnvironmentCreateOrUpdateParameters
- Parameters:
tags
- the tags value to set.- Returns:
- the CreateOrUpdateTrackedResourceProperties object itself.
-
dataRetentionTime
Get the dataRetentionTime property: ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.- Returns:
- the dataRetentionTime value.
-
withDataRetentionTime
Set the dataRetentionTime property: ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.- Parameters:
dataRetentionTime
- the dataRetentionTime value to set.- Returns:
- the Gen1EnvironmentCreateOrUpdateParameters object itself.
-
storageLimitExceededBehavior
Get the storageLimitExceededBehavior property: The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If "PauseIngress" is specified, new events will not be read from the event source. If "PurgeOldData" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData.- Returns:
- the storageLimitExceededBehavior value.
-
withStorageLimitExceededBehavior
public Gen1EnvironmentCreateOrUpdateParameters withStorageLimitExceededBehavior(StorageLimitExceededBehavior storageLimitExceededBehavior) Set the storageLimitExceededBehavior property: The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If "PauseIngress" is specified, new events will not be read from the event source. If "PurgeOldData" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData.- Parameters:
storageLimitExceededBehavior
- the storageLimitExceededBehavior value to set.- Returns:
- the Gen1EnvironmentCreateOrUpdateParameters object itself.
-
partitionKeyProperties
Get the partitionKeyProperties property: The list of event properties which will be used to partition data in the environment. Currently, only a single partition key property is supported.- Returns:
- the partitionKeyProperties value.
-
withPartitionKeyProperties
public Gen1EnvironmentCreateOrUpdateParameters withPartitionKeyProperties(List<TimeSeriesIdProperty> partitionKeyProperties) Set the partitionKeyProperties property: The list of event properties which will be used to partition data in the environment. Currently, only a single partition key property is supported.- Parameters:
partitionKeyProperties
- the partitionKeyProperties value to set.- Returns:
- the Gen1EnvironmentCreateOrUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classEnvironmentCreateOrUpdateParameters
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-