AuthenticationPolicyInner Class

public final class AuthenticationPolicyInner
extends Resource

Authentication policy resource for identity integration.

Constructor Summary

Constructor Description
AuthenticationPolicyInner()

Creates an instance of AuthenticationPolicyInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static AuthenticationPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of AuthenticationPolicyInner from the JsonReader.

String id()

Get the id property: Resource ID.

ManagedServiceIdentity identity()

Get the identity property: The user-assigned identity used by a user sign-in policy to access its Key Vault client secret.

String name()

Get the name property: The name of the resource.

AuthenticationPolicyPropertiesFormat properties()

Get the properties property: Properties of the authentication policy.

SystemData systemData()

Get the systemData property: The system metadata related to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AuthenticationPolicyInner withId(String id)

Set the id property: Resource ID.

AuthenticationPolicyInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: The user-assigned identity used by a user sign-in policy to access its Key Vault client secret.

AuthenticationPolicyInner withLocation(String location)
AuthenticationPolicyInner withProperties(AuthenticationPolicyPropertiesFormat properties)

Set the properties property: Properties of the authentication policy.

AuthenticationPolicyInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

AuthenticationPolicyInner

public AuthenticationPolicyInner()

Creates an instance of AuthenticationPolicyInner class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static AuthenticationPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of AuthenticationPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AuthenticationPolicyInner 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: Resource ID.

Overrides:

AuthenticationPolicyInner.id()

Returns:

the id value.

identity

public ManagedServiceIdentity identity()

Get the identity property: The user-assigned identity used by a user sign-in policy to access its Key Vault client secret.

Returns:

the identity value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AuthenticationPolicyInner.name()

Returns:

the name value.

properties

public AuthenticationPolicyPropertiesFormat properties()

Get the properties property: Properties of the authentication policy.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata related to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AuthenticationPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AuthenticationPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public AuthenticationPolicyInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the AuthenticationPolicyInner object itself.

withIdentity

public AuthenticationPolicyInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: The user-assigned identity used by a user sign-in policy to access its Key Vault client secret.

Parameters:

identity - the identity value to set.

Returns:

the AuthenticationPolicyInner object itself.

withLocation

public AuthenticationPolicyInner withLocation(String location)

Overrides:

AuthenticationPolicyInner.withLocation(String location)

Parameters:

location

withProperties

public AuthenticationPolicyInner withProperties(AuthenticationPolicyPropertiesFormat properties)

Set the properties property: Properties of the authentication policy.

Parameters:

properties - the properties value to set.

Returns:

the AuthenticationPolicyInner object itself.

withTags

public AuthenticationPolicyInner withTags(Map<String,String> tags)

Overrides:

AuthenticationPolicyInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to