Class EnvironmentCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.CreateOrUpdateTrackedResourceProperties
com.azure.resourcemanager.timeseriesinsights.models.EnvironmentCreateOrUpdateParameters
- Direct Known Subclasses:
Gen1EnvironmentCreateOrUpdateParameters
,Gen2EnvironmentCreateOrUpdateParameters
Parameters supplied to the CreateOrUpdate Environment operation.
-
Constructor Summary
ConstructorDescriptionCreates an instance of EnvironmentCreateOrUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionsku()
Get the sku property: The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1).void
validate()
Validates the instance.withLocation
(String location) Set the location property: The location of the resource.Set the sku property: The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1).Set the tags property: Key-value pairs of additional properties for the resource.Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.CreateOrUpdateTrackedResourceProperties
location, tags
-
Constructor Details
-
EnvironmentCreateOrUpdateParameters
public EnvironmentCreateOrUpdateParameters()Creates an instance of EnvironmentCreateOrUpdateParameters class.
-
-
Method Details
-
sku
Get 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.- Returns:
- the sku value.
-
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.- 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 classCreateOrUpdateTrackedResourceProperties
- 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 classCreateOrUpdateTrackedResourceProperties
- Parameters:
tags
- the tags value to set.- Returns:
- the CreateOrUpdateTrackedResourceProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCreateOrUpdateTrackedResourceProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-