Class DataManifestCustomResourceFunctionDefinition
java.lang.Object
com.azure.resourcemanager.resources.models.DataManifestCustomResourceFunctionDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataManifestCustomResourceFunctionDefinition>
public final class DataManifestCustomResourceFunctionDefinition
extends Object
implements com.azure.json.JsonSerializable<DataManifestCustomResourceFunctionDefinition>
The custom resource function definition.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataManifestCustomResourceFunctionDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowCustomProperties property: A value indicating whether the custom properties within the property bag are allowed.Get the defaultProperties property: The top-level properties that can be selected on the function's output.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataManifestCustomResourceFunctionDefinition from the JsonReader.Get the fullyQualifiedResourceType property: The fully qualified control plane resource type that this function represents.name()Get the name property: The function name as it will appear in the policy rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllowCustomProperties(Boolean allowCustomProperties) Set the allowCustomProperties property: A value indicating whether the custom properties within the property bag are allowed.withDefaultProperties(List<String> defaultProperties) Set the defaultProperties property: The top-level properties that can be selected on the function's output.withFullyQualifiedResourceType(String fullyQualifiedResourceType) Set the fullyQualifiedResourceType property: The fully qualified control plane resource type that this function represents.Set the name property: The function name as it will appear in the policy rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DataManifestCustomResourceFunctionDefinition
public DataManifestCustomResourceFunctionDefinition()Creates an instance of DataManifestCustomResourceFunctionDefinition class.
-
-
Method Details
-
name
Get the name property: The function name as it will appear in the policy rule. eg - 'vault'.- Returns:
- the name value.
-
withName
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.
-
fullyQualifiedResourceType
Get the fullyQualifiedResourceType property: The fully qualified control plane resource type that this function represents. eg - 'Microsoft.KeyVault/vaults'.- Returns:
- the fullyQualifiedResourceType value.
-
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.
-
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.
-
withDefaultProperties
public DataManifestCustomResourceFunctionDefinition withDefaultProperties(List<String> 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.
-
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.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataManifestCustomResourceFunctionDefinition>- Throws:
IOException
-
fromJson
public static DataManifestCustomResourceFunctionDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-