Class ClusterInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.streamanalytics.fluent.models.ClusterInner
-
public final class ClusterInner extends com.azure.core.management.Resource
A Stream Analytics Cluster object.
-
-
Constructor Summary
Constructors Constructor Description ClusterInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
capacityAllocated()
Get the capacityAllocated property: Represents the number of streaming units currently being used on the cluster.Integer
capacityAssigned()
Get the capacityAssigned property: Represents the sum of the SUs of all streaming jobs associated with the cluster.String
clusterId()
Get the clusterId property: Unique identifier for the cluster.OffsetDateTime
createdDate()
Get the createdDate property: The date this cluster was created.String
etag()
Get the etag property: The current entity tag for the cluster.ClusterProvisioningState
provisioningState()
Get the provisioningState property: The status of the cluster provisioning.ClusterSku
sku()
Get the sku property: The SKU of the cluster.void
validate()
Validates the instance.ClusterInner
withLocation(String location)
ClusterInner
withSku(ClusterSku sku)
Set the sku property: The SKU of the cluster.ClusterInner
withTags(Map<String,String> tags)
-
-
-
Method Detail
-
sku
public ClusterSku sku()
Get the sku property: The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.- Returns:
- the sku value.
-
withSku
public ClusterInner withSku(ClusterSku sku)
Set the sku property: The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.- Parameters:
sku
- the sku value to set.- Returns:
- the ClusterInner object itself.
-
etag
public String etag()
Get the etag property: The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.- Returns:
- the etag value.
-
withLocation
public ClusterInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public ClusterInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
createdDate
public OffsetDateTime createdDate()
Get the createdDate property: The date this cluster was created.- Returns:
- the createdDate value.
-
clusterId
public String clusterId()
Get the clusterId property: Unique identifier for the cluster.- Returns:
- the clusterId value.
-
provisioningState
public ClusterProvisioningState provisioningState()
Get the provisioningState property: The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled.- Returns:
- the provisioningState value.
-
capacityAllocated
public Integer capacityAllocated()
Get the capacityAllocated property: Represents the number of streaming units currently being used on the cluster.- Returns:
- the capacityAllocated value.
-
capacityAssigned
public Integer capacityAssigned()
Get the capacityAssigned property: Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.- Returns:
- the capacityAssigned value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-