Class TrustedAccessRoleInner

java.lang.Object
com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<TrustedAccessRoleInner>

public final class TrustedAccessRoleInner extends Object implements com.azure.json.JsonSerializable<TrustedAccessRoleInner>
Trusted access role definition.
  • Constructor Details

    • TrustedAccessRoleInner

      public TrustedAccessRoleInner()
      Creates an instance of TrustedAccessRoleInner class.
  • Method Details

    • sourceResourceType

      public String sourceResourceType()
      Get the sourceResourceType property: Resource type of Azure resource.
      Returns:
      the sourceResourceType value.
    • name

      public String name()
      Get the name property: Name of role, name is unique under a source resource type.
      Returns:
      the name value.
    • rules

      public List<TrustedAccessRoleRule> rules()
      Get the rules property: List of rules for the role. This maps to 'rules' property of [Kubernetes Cluster Role](https://kubernetes.io/docs/reference/kubernetes-api/authorization-resources/cluster-role-v1/#ClusterRole).
      Returns:
      the rules value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TrustedAccessRoleInner>
      Throws:
      IOException
    • fromJson

      public static TrustedAccessRoleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TrustedAccessRoleInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TrustedAccessRoleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the TrustedAccessRoleInner.