GovernanceRuleOwnerSource Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.GovernanceRuleOwnerSource

Implements

public final class GovernanceRuleOwnerSource
implements JsonSerializable<GovernanceRuleOwnerSource>

Describe the owner source of governance rule.

Constructor Summary

Constructor Description
GovernanceRuleOwnerSource()

Creates an instance of GovernanceRuleOwnerSource class.

Method Summary

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

Reads an instance of GovernanceRuleOwnerSource from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
GovernanceRuleOwnerSourceType type()

Get the type property: The owner type for the governance rule owner source.

void validate()

Validates the instance.

String value()

Get the value property: The source value e.g.

GovernanceRuleOwnerSource withType(GovernanceRuleOwnerSourceType type)

Set the type property: The owner type for the governance rule owner source.

GovernanceRuleOwnerSource withValue(String value)

Set the value property: The source value e.g.

Methods inherited from java.lang.Object

Constructor Details

GovernanceRuleOwnerSource

public GovernanceRuleOwnerSource()

Creates an instance of GovernanceRuleOwnerSource class.

Method Details

fromJson

public static GovernanceRuleOwnerSource fromJson(JsonReader jsonReader)

Reads an instance of GovernanceRuleOwnerSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public GovernanceRuleOwnerSourceType type()

Get the type property: The owner type for the governance rule owner source.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The source value e.g. tag key like owner name or email address.

Returns:

the value value.

withType

public GovernanceRuleOwnerSource withType(GovernanceRuleOwnerSourceType type)

Set the type property: The owner type for the governance rule owner source.

Parameters:

type - the type value to set.

Returns:

the GovernanceRuleOwnerSource object itself.

withValue

public GovernanceRuleOwnerSource withValue(String value)

Set the value property: The source value e.g. tag key like owner name or email address.

Parameters:

value - the value value to set.

Returns:

the GovernanceRuleOwnerSource object itself.

Applies to