Partager via


DataPolicyManifestInner Class

public final class DataPolicyManifestInner
extends ProxyResource

The data policy manifest.

Constructor Summary

Constructor Description
DataPolicyManifestInner()

Creates an instance of DataPolicyManifestInner class.

Method Summary

Modifier and Type Method and Description
List<DataManifestCustomResourceFunctionDefinition> custom()

Get the custom property: An array of data manifest custom resource definition.

List<DataEffect> effects()

Get the effects property: The effect definition.

List<String> fieldValues()

Get the fieldValues property: The non-alias field accessor values that can be used in the policy rule.

static DataPolicyManifestInner fromJson(JsonReader jsonReader)

Reads an instance of DataPolicyManifestInner from the JsonReader.

String id()

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

Boolean isBuiltInOnly()

Get the isBuiltInOnly property: A value indicating whether policy mode is allowed only in built-in definitions.

String name()

Get the name property: The name of the resource.

List<String> namespaces()

Get the namespaces property: The list of namespaces for the data policy manifest.

String policyMode()

Get the policyMode property: The policy mode of the data policy manifest.

List<ResourceTypeAliases> resourceTypeAliases()

Get the resourceTypeAliases property: An array of resource type aliases.

List<String> standard()

Get the standard property: The standard resource functions (subscription and/or resourceGroup).

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DataPolicyManifestInner withCustom(List<DataManifestCustomResourceFunctionDefinition> custom)

Set the custom property: An array of data manifest custom resource definition.

DataPolicyManifestInner withEffects(List<DataEffect> effects)

Set the effects property: The effect definition.

DataPolicyManifestInner withFieldValues(List<String> fieldValues)

Set the fieldValues property: The non-alias field accessor values that can be used in the policy rule.

DataPolicyManifestInner withIsBuiltInOnly(Boolean isBuiltInOnly)

Set the isBuiltInOnly property: A value indicating whether policy mode is allowed only in built-in definitions.

DataPolicyManifestInner withNamespaces(List<String> namespaces)

Set the namespaces property: The list of namespaces for the data policy manifest.

DataPolicyManifestInner withPolicyMode(String policyMode)

Set the policyMode property: The policy mode of the data policy manifest.

DataPolicyManifestInner withResourceTypeAliases(List<ResourceTypeAliases> resourceTypeAliases)

Set the resourceTypeAliases property: An array of resource type aliases.

DataPolicyManifestInner withStandard(List<String> standard)

Set the standard property: The standard resource functions (subscription and/or resourceGroup).

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DataPolicyManifestInner

public DataPolicyManifestInner()

Creates an instance of DataPolicyManifestInner class.

Method Details

custom

public List custom()

Get the custom property: An array of data manifest custom resource definition.

Returns:

the custom value.

effects

public List effects()

Get the effects property: The effect definition.

Returns:

the effects value.

fieldValues

public List fieldValues()

Get the fieldValues property: The non-alias field accessor values that can be used in the policy rule.

Returns:

the fieldValues value.

fromJson

public static DataPolicyManifestInner fromJson(JsonReader jsonReader)

Reads an instance of DataPolicyManifestInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataPolicyManifestInner 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:

DataPolicyManifestInner.id()

Returns:

the id value.

isBuiltInOnly

public Boolean isBuiltInOnly()

Get the isBuiltInOnly property: A value indicating whether policy mode is allowed only in built-in definitions.

Returns:

the isBuiltInOnly value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DataPolicyManifestInner.name()

Returns:

the name value.

namespaces

public List namespaces()

Get the namespaces property: The list of namespaces for the data policy manifest.

Returns:

the namespaces value.

policyMode

public String policyMode()

Get the policyMode property: The policy mode of the data policy manifest.

Returns:

the policyMode value.

resourceTypeAliases

public List resourceTypeAliases()

Get the resourceTypeAliases property: An array of resource type aliases.

Returns:

the resourceTypeAliases value.

standard

public List standard()

Get the standard property: The standard resource functions (subscription and/or resourceGroup).

Returns:

the standard value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataPolicyManifestInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DataPolicyManifestInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCustom

public DataPolicyManifestInner withCustom(List custom)

Set the custom property: An array of data manifest custom resource definition.

Parameters:

custom - the custom value to set.

Returns:

the DataPolicyManifestInner object itself.

withEffects

public DataPolicyManifestInner withEffects(List effects)

Set the effects property: The effect definition.

Parameters:

effects - the effects value to set.

Returns:

the DataPolicyManifestInner object itself.

withFieldValues

public DataPolicyManifestInner withFieldValues(List fieldValues)

Set the fieldValues property: The non-alias field accessor values that can be used in the policy rule.

Parameters:

fieldValues - the fieldValues value to set.

Returns:

the DataPolicyManifestInner object itself.

withIsBuiltInOnly

public DataPolicyManifestInner withIsBuiltInOnly(Boolean isBuiltInOnly)

Set the isBuiltInOnly property: A value indicating whether policy mode is allowed only in built-in definitions.

Parameters:

isBuiltInOnly - the isBuiltInOnly value to set.

Returns:

the DataPolicyManifestInner object itself.

withNamespaces

public DataPolicyManifestInner withNamespaces(List namespaces)

Set the namespaces property: The list of namespaces for the data policy manifest.

Parameters:

namespaces - the namespaces value to set.

Returns:

the DataPolicyManifestInner object itself.

withPolicyMode

public DataPolicyManifestInner withPolicyMode(String policyMode)

Set the policyMode property: The policy mode of the data policy manifest.

Parameters:

policyMode - the policyMode value to set.

Returns:

the DataPolicyManifestInner object itself.

withResourceTypeAliases

public DataPolicyManifestInner withResourceTypeAliases(List resourceTypeAliases)

Set the resourceTypeAliases property: An array of resource type aliases.

Parameters:

resourceTypeAliases - the resourceTypeAliases value to set.

Returns:

the DataPolicyManifestInner object itself.

withStandard

public DataPolicyManifestInner withStandard(List standard)

Set the standard property: The standard resource functions (subscription and/or resourceGroup).

Parameters:

standard - the standard value to set.

Returns:

the DataPolicyManifestInner object itself.

Applies to