TrustedAccessRoleInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleInner

Implements

public final class TrustedAccessRoleInner
implements JsonSerializable<TrustedAccessRoleInner>

Trusted access role definition.

Constructor Summary

Constructor Description
TrustedAccessRoleInner()

Creates an instance of TrustedAccessRoleInner class.

Method Summary

Modifier and Type Method and Description
static TrustedAccessRoleInner fromJson(JsonReader jsonReader)

Reads an instance of TrustedAccessRoleInner from the JsonReader.

String name()

Get the name property: Name of role, name is unique under a source resource type.

List<TrustedAccessRoleRule> rules()

Get the rules property: List of rules for the role.

String sourceResourceType()

Get the sourceResourceType property: Resource type of Azure resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

TrustedAccessRoleInner

public TrustedAccessRoleInner()

Creates an instance of TrustedAccessRoleInner class.

Method Details

fromJson

public static TrustedAccessRoleInner fromJson(JsonReader jsonReader)

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.

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 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.

sourceResourceType

public String sourceResourceType()

Get the sourceResourceType property: Resource type of Azure resource.

Returns:

the sourceResourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to