TrustPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TrustPolicy
- com.
Implements
public final class TrustPolicy
implements JsonSerializable<TrustPolicy>
The content trust policy for a container registry.
Constructor Summary
Constructor | Description |
---|---|
TrustPolicy() |
Creates an instance of Trust |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Trust |
fromJson(JsonReader jsonReader)
Reads an instance of Trust |
Policy |
status()
Get the status property: The value that indicates whether the policy is enabled or not. |
Json |
toJson(JsonWriter jsonWriter) |
Trust |
type()
Get the type property: The type of trust policy. |
void |
validate()
Validates the instance. |
Trust |
withStatus(PolicyStatus status)
Set the status property: The value that indicates whether the policy is enabled or not. |
Trust |
withType(TrustPolicyType type)
Set the type property: The type of trust policy. |
Methods inherited from java.lang.Object
Constructor Details
TrustPolicy
public TrustPolicy()
Creates an instance of TrustPolicy class.
Method Details
fromJson
public static TrustPolicy fromJson(JsonReader jsonReader)
Reads an instance of TrustPolicy from the JsonReader.
Parameters:
Returns:
Throws:
status
public PolicyStatus status()
Get the status property: The value that indicates whether the policy is enabled or not.
Returns:
toJson
type
public TrustPolicyType type()
Get the type property: The type of trust policy.
Returns:
validate
public void validate()
Validates the instance.
withStatus
public TrustPolicy withStatus(PolicyStatus status)
Set the status property: The value that indicates whether the policy is enabled or not.
Parameters:
Returns:
withType
public TrustPolicy withType(TrustPolicyType type)
Set the type property: The type of trust policy.
Parameters:
Returns:
Applies to
Azure SDK for Java