Class Gen1EnvironmentUpdateParameters
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.EnvironmentUpdateParameters
com.azure.resourcemanager.timeseriesinsights.models.Gen1EnvironmentUpdateParameters
Parameters supplied to the Update Environment operation to update a Gen1 environment.
-
Constructor Summary
ConstructorDescriptionCreates an instance of Gen1EnvironmentUpdateParameters 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.sku()
Get the sku property: The sku of 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.Set the sku property: The sku of the environment.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 environment.Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.EnvironmentUpdateParameters
tags
-
Constructor Details
-
Gen1EnvironmentUpdateParameters
public Gen1EnvironmentUpdateParameters()Creates an instance of Gen1EnvironmentUpdateParameters class.
-
-
Method Details
-
sku
Get the sku property: The sku of the environment.- Returns:
- the sku value.
-
withSku
Set the sku property: The sku of the environment.- Parameters:
sku
- the sku value to set.- Returns:
- the Gen1EnvironmentUpdateParameters object itself.
-
withTags
Set the tags property: Key-value pairs of additional properties for the environment.- Overrides:
withTags
in classEnvironmentUpdateParameters
- Parameters:
tags
- the tags value to set.- Returns:
- the EnvironmentUpdateParameters 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 Gen1EnvironmentUpdateParameters 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 Gen1EnvironmentUpdateParameters 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 Gen1EnvironmentUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classEnvironmentUpdateParameters
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-