PolicySummary Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. PolicySummary
- com.
Implements
public final class PolicySummary
implements JsonSerializable<PolicySummary>
The summary of the policy.
Constructor Summary
| Constructor | Description |
|---|---|
| PolicySummary() |
Creates an instance of Policy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
| String |
name()
Get the name property: The name of the policy. |
|
Policy |
policyType()
Get the policy |
| String |
scope()
Get the scope property: The scope at which the policy is defined. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
value()
Get the value property: The value of the policy. |
|
Policy |
withName(String name)
Set the name property: The name of the policy. |
|
Policy |
withPolicyType(PolicyType policyType)
Set the policy |
|
Policy |
withScope(String scope)
Set the scope property: The scope at which the policy is defined. |
|
Policy |
withValue(String value)
Set the value property: The value of the policy. |
Methods inherited from java.lang.Object
Constructor Details
PolicySummary
public PolicySummary()
Creates an instance of PolicySummary class.
Method Details
fromJson
public static PolicySummary fromJson(JsonReader jsonReader)
Reads an instance of PolicySummary from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the policy.
Returns:
policyType
public PolicyType policyType()
Get the policyType property: The type of the policy.
Returns:
scope
public String scope()
Get the scope property: The scope at which the policy is defined.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The value of the policy.
Returns:
withName
public PolicySummary withName(String name)
Set the name property: The name of the policy.
Parameters:
Returns:
withPolicyType
public PolicySummary withPolicyType(PolicyType policyType)
Set the policyType property: The type of the policy.
Parameters:
Returns:
withScope
public PolicySummary withScope(String scope)
Set the scope property: The scope at which the policy is defined.
Parameters:
Returns:
withValue
public PolicySummary withValue(String value)
Set the value property: The value of the policy.
Parameters:
Returns: