AttributeNamespaceCreateRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.AttributeNamespaceCreateRequest

Implements

public final class AttributeNamespaceCreateRequest
implements JsonSerializable<AttributeNamespaceCreateRequest>

Request body for creating an attribute namespace.

Constructor Summary

Constructor Description
AttributeNamespaceCreateRequest()

Creates an instance of AttributeNamespaceCreateRequest class.

Method Summary

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

Reads an instance of AttributeNamespaceCreateRequest from the JsonReader.

String namespaceOwnerPrincipalId()

Get the namespaceOwnerPrincipalId property: The principal ID of the namespace owner.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AttributeNamespaceCreateRequest withNamespaceOwnerPrincipalId(String namespaceOwnerPrincipalId)

Set the namespaceOwnerPrincipalId property: The principal ID of the namespace owner.

Methods inherited from java.lang.Object

Constructor Details

AttributeNamespaceCreateRequest

public AttributeNamespaceCreateRequest()

Creates an instance of AttributeNamespaceCreateRequest class.

Method Details

fromJson

public static AttributeNamespaceCreateRequest fromJson(JsonReader jsonReader)

Reads an instance of AttributeNamespaceCreateRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

namespaceOwnerPrincipalId

public String namespaceOwnerPrincipalId()

Get the namespaceOwnerPrincipalId property: The principal ID of the namespace owner.

Returns:

the namespaceOwnerPrincipalId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNamespaceOwnerPrincipalId

public AttributeNamespaceCreateRequest withNamespaceOwnerPrincipalId(String namespaceOwnerPrincipalId)

Set the namespaceOwnerPrincipalId property: The principal ID of the namespace owner.

Parameters:

namespaceOwnerPrincipalId - the namespaceOwnerPrincipalId value to set.

Returns:

the AttributeNamespaceCreateRequest object itself.

Applies to