NamespaceSku Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. NamespaceSku
- com.
Implements
public final class NamespaceSku
implements JsonSerializable<NamespaceSku>
Represents available Sku pricing tiers.
Constructor Summary
| Constructor | Description |
|---|---|
| NamespaceSku() |
Creates an instance of Namespace |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
capacity()
Get the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace. |
|
static
Namespace |
fromJson(JsonReader jsonReader)
Reads an instance of Namespace |
|
Sku |
name()
Get the name property: The name of the SKU. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Namespace |
withCapacity(Integer capacity)
Set the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace. |
|
Namespace |
withName(SkuName name)
Set the name property: The name of the SKU. |
Methods inherited from java.lang.Object
Constructor Details
NamespaceSku
public NamespaceSku()
Creates an instance of NamespaceSku class.
Method Details
capacity
public Integer capacity()
Get the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value is 1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace. Min capacity is 1 and max allowed capacity is 20.
Returns:
fromJson
public static NamespaceSku fromJson(JsonReader jsonReader)
Reads an instance of NamespaceSku from the JsonReader.
Parameters:
Returns:
Throws:
name
public SkuName name()
Get the name property: The name of the SKU.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCapacity
public NamespaceSku withCapacity(Integer capacity)
Set the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value is 1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace. Min capacity is 1 and max allowed capacity is 20.
Parameters:
Returns:
withName
public NamespaceSku withName(SkuName name)
Set the name property: The name of the SKU.
Parameters:
Returns: