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 Summary
ConstructorsConstructorDescriptionCreates an instance of TrustedAccessRoleInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TrustedAccessRoleInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrustedAccessRoleInner from the JsonReader.name()Get the name property: Name of role, name is unique under a source resource type.rules()Get the rules property: List of rules for the role.Get the sourceResourceType property: Resource type of Azure resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TrustedAccessRoleInner
public TrustedAccessRoleInner()Creates an instance of TrustedAccessRoleInner class.
-
-
Method Details
-
sourceResourceType
Get the sourceResourceType property: Resource type of Azure resource.- Returns:
- the sourceResourceType value.
-
name
Get the name property: Name of role, name is unique under a source resource type.- Returns:
- the name value.
-
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
- Specified by:
toJsonin interfacecom.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.
-