Udostępnij za pośrednictwem


CustomDomainIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.CustomDomainIdentity

Implements

public final class CustomDomainIdentity
implements JsonSerializable<CustomDomainIdentity>

The identity information for retrieving the certificate for the custom domain.

Constructor Summary

Constructor Description
CustomDomainIdentity()

Creates an instance of CustomDomainIdentity class.

Method Summary

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

Reads an instance of CustomDomainIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
CustomDomainIdentityType type()

Get the type property: The type of managed identity used.

String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

void validate()

Validates the instance.

CustomDomainIdentity withType(CustomDomainIdentityType type)

Set the type property: The type of managed identity used.

CustomDomainIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The user identity associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

CustomDomainIdentity

public CustomDomainIdentity()

Creates an instance of CustomDomainIdentity class.

Method Details

fromJson

public static CustomDomainIdentity fromJson(JsonReader jsonReader)

Reads an instance of CustomDomainIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomDomainIdentity 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 CustomDomainIdentity.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public CustomDomainIdentityType type()

Get the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Returns:

the type value.

userAssignedIdentity

public String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

Returns:

the userAssignedIdentity value.

validate

public void validate()

Validates the instance.

withType

public CustomDomainIdentity withType(CustomDomainIdentityType type)

Set the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Parameters:

type - the type value to set.

Returns:

the CustomDomainIdentity object itself.

withUserAssignedIdentity

public CustomDomainIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The user identity associated with the resource.

Parameters:

userAssignedIdentity - the userAssignedIdentity value to set.

Returns:

the CustomDomainIdentity object itself.

Applies to