DataManifestCustomResourceFunctionDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.DataManifestCustomResourceFunctionDefinition

Implements

public final class DataManifestCustomResourceFunctionDefinition
implements JsonSerializable<DataManifestCustomResourceFunctionDefinition>

The custom resource function definition.

Constructor Summary

Constructor Description
DataManifestCustomResourceFunctionDefinition()

Creates an instance of DataManifestCustomResourceFunctionDefinition class.

Method Summary

Modifier and Type Method and Description
Boolean allowCustomProperties()

Get the allowCustomProperties property: A value indicating whether the custom properties within the property bag are allowed.

List<String> defaultProperties()

Get the defaultProperties property: The top-level properties that can be selected on the function's output.

static DataManifestCustomResourceFunctionDefinition fromJson(JsonReader jsonReader)

Reads an instance of DataManifestCustomResourceFunctionDefinition from the JsonReader.

String fullyQualifiedResourceType()

Get the fullyQualifiedResourceType property: The fully qualified control plane resource type that this function represents.

String name()

Get the name property: The function name as it will appear in the policy rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataManifestCustomResourceFunctionDefinition withAllowCustomProperties(Boolean allowCustomProperties)

Set the allowCustomProperties property: A value indicating whether the custom properties within the property bag are allowed.

DataManifestCustomResourceFunctionDefinition withDefaultProperties(List<String> defaultProperties)

Set the defaultProperties property: The top-level properties that can be selected on the function's output.

DataManifestCustomResourceFunctionDefinition withFullyQualifiedResourceType(String fullyQualifiedResourceType)

Set the fullyQualifiedResourceType property: The fully qualified control plane resource type that this function represents.

DataManifestCustomResourceFunctionDefinition withName(String name)

Set the name property: The function name as it will appear in the policy rule.

Methods inherited from java.lang.Object

Constructor Details

DataManifestCustomResourceFunctionDefinition

public DataManifestCustomResourceFunctionDefinition()

Creates an instance of DataManifestCustomResourceFunctionDefinition class.

Method Details

allowCustomProperties

public Boolean allowCustomProperties()

Get the allowCustomProperties property: A value indicating whether the custom properties within the property bag are allowed. Needs api-version to be specified in the policy rule eg - vault('2019-06-01').

Returns:

the allowCustomProperties value.

defaultProperties

public List defaultProperties()

Get the defaultProperties property: The top-level properties that can be selected on the function's output. eg - [ "name", "location" ] if vault().name and vault().location are supported.

Returns:

the defaultProperties value.

fromJson

public static DataManifestCustomResourceFunctionDefinition fromJson(JsonReader jsonReader)

Reads an instance of DataManifestCustomResourceFunctionDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

fullyQualifiedResourceType

public String fullyQualifiedResourceType()

Get the fullyQualifiedResourceType property: The fully qualified control plane resource type that this function represents. eg - 'Microsoft.KeyVault/vaults'.

Returns:

the fullyQualifiedResourceType value.

name

public String name()

Get the name property: The function name as it will appear in the policy rule. eg - 'vault'.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowCustomProperties

public DataManifestCustomResourceFunctionDefinition withAllowCustomProperties(Boolean allowCustomProperties)

Set the allowCustomProperties property: A value indicating whether the custom properties within the property bag are allowed. Needs api-version to be specified in the policy rule eg - vault('2019-06-01').

Parameters:

allowCustomProperties - the allowCustomProperties value to set.

Returns:

the DataManifestCustomResourceFunctionDefinition object itself.

withDefaultProperties

public DataManifestCustomResourceFunctionDefinition withDefaultProperties(List defaultProperties)

Set the defaultProperties property: The top-level properties that can be selected on the function's output. eg - [ "name", "location" ] if vault().name and vault().location are supported.

Parameters:

defaultProperties - the defaultProperties value to set.

Returns:

the DataManifestCustomResourceFunctionDefinition object itself.

withFullyQualifiedResourceType

public DataManifestCustomResourceFunctionDefinition withFullyQualifiedResourceType(String fullyQualifiedResourceType)

Set the fullyQualifiedResourceType property: The fully qualified control plane resource type that this function represents. eg - 'Microsoft.KeyVault/vaults'.

Parameters:

fullyQualifiedResourceType - the fullyQualifiedResourceType value to set.

Returns:

the DataManifestCustomResourceFunctionDefinition object itself.

withName

public DataManifestCustomResourceFunctionDefinition withName(String name)

Set the name property: The function name as it will appear in the policy rule. eg - 'vault'.

Parameters:

name - the name value to set.

Returns:

the DataManifestCustomResourceFunctionDefinition object itself.

Applies to