TrustedAccessRoleBindingInner Class

public final class TrustedAccessRoleBindingInner
extends ProxyResource

Defines binding between a resource and role.

Constructor Summary

Constructor Description
TrustedAccessRoleBindingInner()

Creates an instance of TrustedAccessRoleBindingInner class.

Method Summary

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

Reads an instance of TrustedAccessRoleBindingInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

TrustedAccessRoleBindingProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of trusted access role binding.

List<String> roles()

Get the roles property: A list of roles to bind, each item is a resource type qualified role name.

String sourceResourceId()

Get the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

TrustedAccessRoleBindingInner withRoles(List<String> roles)

Set the roles property: A list of roles to bind, each item is a resource type qualified role name.

TrustedAccessRoleBindingInner withSourceResourceId(String sourceResourceId)

Set the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

TrustedAccessRoleBindingInner

public TrustedAccessRoleBindingInner()

Creates an instance of TrustedAccessRoleBindingInner class.

Method Details

fromJson

public static TrustedAccessRoleBindingInner fromJson(JsonReader jsonReader)

Reads an instance of TrustedAccessRoleBindingInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TrustedAccessRoleBindingInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

TrustedAccessRoleBindingInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

TrustedAccessRoleBindingInner.name()

Returns:

the name value.

provisioningState

public TrustedAccessRoleBindingProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of trusted access role binding.

Returns:

the provisioningState value.

roles

public List roles()

Get the roles property: A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'.

Returns:

the roles value.

sourceResourceId

public String sourceResourceId()

Get the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for.

Returns:

the sourceResourceId value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TrustedAccessRoleBindingInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

TrustedAccessRoleBindingInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withRoles

public TrustedAccessRoleBindingInner withRoles(List roles)

Set the roles property: A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'.

Parameters:

roles - the roles value to set.

Returns:

the TrustedAccessRoleBindingInner object itself.

withSourceResourceId

public TrustedAccessRoleBindingInner withSourceResourceId(String sourceResourceId)

Set the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for.

Parameters:

sourceResourceId - the sourceResourceId value to set.

Returns:

the TrustedAccessRoleBindingInner object itself.

Applies to