Class AdapterDefinition
-
- All Implemented Interfaces:
public final class AdapterDefinition extends GroupType
-
-
Field Summary
Fields Modifier and Type Field Description private final String
key
private final JsonObject
json
private final String
adapterType
private final String
adapterLabel
private final String
adapterInstanceType
private final String
adapterInstanceLabel
private final Integer
version
-
Constructor Summary
Constructors Constructor Description AdapterDefinition(String adapterType, String adapterLabel, String adapterInstanceType, String adapterInstanceLabel, Integer version)
AdapterDefinition(String adapterType, String adapterLabel, String adapterInstanceType, String adapterInstanceLabel)
AdapterDefinition(String adapterType, String adapterLabel, String adapterInstanceType)
AdapterDefinition(String adapterType, String adapterLabel)
AdapterDefinition(String adapterType)
-
Method Summary
Modifier and Type Method Description String
getKey()
JsonObject
getJson()
final String
getAdapterType()
final String
getAdapterLabel()
final String
getAdapterInstanceType()
final String
getAdapterInstanceLabel()
final Integer
getVersion()
final StringParameter
defineStringParameter(String key, String label, String description, String default, Integer maxLength, Boolean required, Boolean advanced)
Create a new string parameter and add it to the adapter instance. final StringParameter
defineStringParameter(String key, String label, String description, String default, Integer maxLength, Boolean required)
Create a new string parameter and add it to the adapter instance. final StringParameter
defineStringParameter(String key, String label, String description, String default, Integer maxLength)
Create a new string parameter and add it to the adapter instance. final StringParameter
defineStringParameter(String key, String label, String description, String default)
Create a new string parameter and add it to the adapter instance. final StringParameter
defineStringParameter(String key, String label, String description)
Create a new string parameter and add it to the adapter instance. final StringParameter
defineStringParameter(String key, String label)
Create a new string parameter and add it to the adapter instance. final StringParameter
defineStringParameter(String key)
Create a new string parameter and add it to the adapter instance. final StringParameter
defineStringParameter(String key, Consumer<StringParameterBuilder> block)
Create a new string parameter and add it to the adapter instance. final IntParameter
defineIntegerParameter(String key, String label, String description, Integer default, Boolean required, Boolean advanced)
Create a new integer parameter and add it to the adapter instance. final IntParameter
defineIntegerParameter(String key, String label, String description, Integer default, Boolean required)
Create a new integer parameter and add it to the adapter instance. final IntParameter
defineIntegerParameter(String key, String label, String description, Integer default)
Create a new integer parameter and add it to the adapter instance. final IntParameter
defineIntegerParameter(String key, String label, String description)
Create a new integer parameter and add it to the adapter instance. final IntParameter
defineIntegerParameter(String key, String label)
Create a new integer parameter and add it to the adapter instance. final IntParameter
defineIntegerParameter(String key)
Create a new integer parameter and add it to the adapter instance. final IntParameter
defineIntegerParameter(String key, Consumer<IntegerParameterBuilder> block)
Create a new integer parameter and add it to the adapter instance. final EnumParameter
defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description, String default, Boolean required, Boolean advanced)
Create a new enum parameter and add it to the adapter instance. final EnumParameter
defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description, String default, Boolean required)
Create a new enum parameter and add it to the adapter instance. final EnumParameter
defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description, String default)
Create a new enum parameter and add it to the adapter instance. final EnumParameter
defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description)
Create a new enum parameter and add it to the adapter instance. final EnumParameter
defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label)
Create a new enum parameter and add it to the adapter instance. final EnumParameter
defineEnumParameter(String key, List<EnumParameter.EnumValue> values)
Create a new enum parameter and add it to the adapter instance. final EnumParameter
defineEnumParameter(String key, Consumer<EnumParameterBuilder> block)
Create a new enum parameter and add it to the adapter instance. final Unit
addParameter(Parameter parameter)
Add a parameter to the adapter instance. final CredentialType
defineCredentialType(String key, String label)
Create a new credential type and add it to this adapter instance. final CredentialType
defineCredentialType(String key)
Create a new credential type and add it to this adapter instance. final CredentialType
defineCredentialType()
Create a new credential type and add it to this adapter instance. final Unit
addCredentialTypes(List<CredentialType> credentialTypes)
Add a list of credential types to the adapter instance. final Unit
addCredentialType(CredentialType credentialType)
Add a credential type to the adapter instance. final ObjectType
defineObjectType(String key, String label)
Create a new object type definition and add it to this adapter definition. final Unit
addObjectTypes(List<ObjectType> objectTypes)
Adds a list of object types to this adapter definition final Unit
addObjectType(ObjectType objectType)
Adds an object type to this adapter definition final Unit
sendResults(String outputPipe)
Opens the output pipe and sends the definition directly back to the server This method can only be called once per collection. final Unit
sendResults()
Opens the output pipe and sends the definition directly back to the server This method can only be called once per collection. -
Methods inherited from class com.vmware.aria.operations.definition.GroupType
addAttribute, addAttributes, addGroup, addGroups, defineGroup, defineGroup, defineInstancedGroup, defineInstancedGroup, defineInstancedGroup, defineMetric, defineMetric, defineMetric, defineMetric, defineMetric, defineMetric, defineMetric, defineMetric, defineMetric, defineNumericProperty, defineNumericProperty, defineNumericProperty, defineNumericProperty, defineNumericProperty, defineNumericProperty, defineNumericProperty, defineNumericProperty, defineNumericProperty, defineStringProperty, defineStringProperty, defineStringProperty, defineStringProperty, defineStringProperty, defineStringProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AdapterDefinition
AdapterDefinition(String adapterType, String adapterLabel, String adapterInstanceType, String adapterInstanceLabel, Integer version)
-
AdapterDefinition
AdapterDefinition(String adapterType, String adapterLabel, String adapterInstanceType, String adapterInstanceLabel)
-
AdapterDefinition
AdapterDefinition(String adapterType, String adapterLabel, String adapterInstanceType)
-
AdapterDefinition
AdapterDefinition(String adapterType)
-
-
Method Detail
-
getJson
JsonObject getJson()
-
getAdapterType
final String getAdapterType()
-
getAdapterLabel
final String getAdapterLabel()
-
getAdapterInstanceType
final String getAdapterInstanceType()
-
getAdapterInstanceLabel
final String getAdapterInstanceLabel()
-
getVersion
final Integer getVersion()
-
defineStringParameter
@JvmOverloads() final StringParameter defineStringParameter(String key, String label, String description, String default, Integer maxLength, Boolean required, Boolean advanced)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.maxLength
- The max length of the parameter value.required
- True if user is required to provide this parameter.advanced
- True if the parameter should be collapsed by default.- Returns:
The created string parameter definition.
-
defineStringParameter
@JvmOverloads() final StringParameter defineStringParameter(String key, String label, String description, String default, Integer maxLength, Boolean required)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.maxLength
- The max length of the parameter value.required
- True if user is required to provide this parameter.- Returns:
The created string parameter definition.
-
defineStringParameter
@JvmOverloads() final StringParameter defineStringParameter(String key, String label, String description, String default, Integer maxLength)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.maxLength
- The max length of the parameter value.- Returns:
The created string parameter definition.
-
defineStringParameter
@JvmOverloads() final StringParameter defineStringParameter(String key, String label, String description, String default)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.- Returns:
The created string parameter definition.
-
defineStringParameter
@JvmOverloads() final StringParameter defineStringParameter(String key, String label, String description)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.- Returns:
The created string parameter definition.
-
defineStringParameter
@JvmOverloads() final StringParameter defineStringParameter(String key, String label)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.- Returns:
The created string parameter definition.
-
defineStringParameter
@JvmOverloads() final StringParameter defineStringParameter(String key)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameter- Returns:
The created string parameter definition.
-
defineStringParameter
final StringParameter defineStringParameter(String key, Consumer<StringParameterBuilder> block)
Create a new string parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterblock
- Anonymous function taking a StringParameterBuilder as a parameter that can be used to override default values.
-
defineIntegerParameter
@JvmOverloads() final IntParameter defineIntegerParameter(String key, String label, String description, Integer default, Boolean required, Boolean advanced)
Create a new integer parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.required
- True if user is required to provide this parameter.advanced
- True if the parameter should be collapsed by default.- Returns:
The created int parameter definition.
-
defineIntegerParameter
@JvmOverloads() final IntParameter defineIntegerParameter(String key, String label, String description, Integer default, Boolean required)
Create a new integer parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.required
- True if user is required to provide this parameter.- Returns:
The created int parameter definition.
-
defineIntegerParameter
@JvmOverloads() final IntParameter defineIntegerParameter(String key, String label, String description, Integer default)
Create a new integer parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.- Returns:
The created int parameter definition.
-
defineIntegerParameter
@JvmOverloads() final IntParameter defineIntegerParameter(String key, String label, String description)
Create a new integer parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.- Returns:
The created int parameter definition.
-
defineIntegerParameter
@JvmOverloads() final IntParameter defineIntegerParameter(String key, String label)
Create a new integer parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterlabel
- Label that is displayed in the VMware Aria Operations UI.- Returns:
The created int parameter definition.
-
defineIntegerParameter
@JvmOverloads() final IntParameter defineIntegerParameter(String key)
Create a new integer parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameter- Returns:
The created int parameter definition.
-
defineIntegerParameter
final IntParameter defineIntegerParameter(String key, Consumer<IntegerParameterBuilder> block)
Create a new integer parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterblock
- Anonymous function taking an IntegerParameterBuilder as a parameter that can be used to override default values.
-
defineEnumParameter
@JvmOverloads() final EnumParameter defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description, String default, Boolean required, Boolean advanced)
Create a new enum parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parametervalues
- A List containing all enum values.label
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.required
- True if user is required to provide this parameter.advanced
- True if the parameter should be collapsed by default.- Returns:
The created int parameter definition.
-
defineEnumParameter
@JvmOverloads() final EnumParameter defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description, String default, Boolean required)
Create a new enum parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parametervalues
- A List containing all enum values.label
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.required
- True if user is required to provide this parameter.- Returns:
The created int parameter definition.
-
defineEnumParameter
@JvmOverloads() final EnumParameter defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description, String default)
Create a new enum parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parametervalues
- A List containing all enum values.label
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.default
- The default value of the parameter.- Returns:
The created int parameter definition.
-
defineEnumParameter
@JvmOverloads() final EnumParameter defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label, String description)
Create a new enum parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parametervalues
- A List containing all enum values.label
- Label that is displayed in the VMware Aria Operations UI.description
- More in-depth explanation of the parameter.- Returns:
The created int parameter definition.
-
defineEnumParameter
@JvmOverloads() final EnumParameter defineEnumParameter(String key, List<EnumParameter.EnumValue> values, String label)
Create a new enum parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parametervalues
- A List containing all enum values.label
- Label that is displayed in the VMware Aria Operations UI.- Returns:
The created int parameter definition.
-
defineEnumParameter
@JvmOverloads() final EnumParameter defineEnumParameter(String key, List<EnumParameter.EnumValue> values)
Create a new enum parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parametervalues
- A List containing all enum values.- Returns:
The created int parameter definition.
-
defineEnumParameter
final EnumParameter defineEnumParameter(String key, Consumer<EnumParameterBuilder> block)
Create a new enum parameter and add it to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
key
- Used to identify the parameterblock
- Anonymous function taking an EnumParameterBuilder as a parameter that can be used to override default values.
-
addParameter
final Unit addParameter(Parameter parameter)
Add a parameter to the adapter instance. The user will be asked to provide a value for this parameter each time a new account/adapter instance is created.
- Parameters:
parameter
- The parameter to add to the adapter instance.
-
defineCredentialType
@JvmOverloads() final CredentialType defineCredentialType(String key, String label)
Create a new credential type and add it to this adapter instance. When more than one credential types are present, The user will be required to select the type and then fill in the parameters for that type, as only one credential type can be used for any given adapter instance.
- Parameters:
key
- Used to identify the credential typelabel
- Label that is displayed in the VMware Aria Operations UI.- Returns:
The created credential type.
-
defineCredentialType
@JvmOverloads() final CredentialType defineCredentialType(String key)
Create a new credential type and add it to this adapter instance. When more than one credential types are present, The user will be required to select the type and then fill in the parameters for that type, as only one credential type can be used for any given adapter instance.
- Parameters:
key
- Used to identify the credential type- Returns:
The created credential type.
-
defineCredentialType
@JvmOverloads() final CredentialType defineCredentialType()
Create a new credential type and add it to this adapter instance. When more than one credential types are present, The user will be required to select the type and then fill in the parameters for that type, as only one credential type can be used for any given adapter instance.
- Returns:
The created credential type.
-
addCredentialTypes
final Unit addCredentialTypes(List<CredentialType> credentialTypes)
Add a list of credential types to the adapter instance.
- Parameters:
credentialTypes
- A list of credential types to add.
-
addCredentialType
final Unit addCredentialType(CredentialType credentialType)
Add a credential type to the adapter instance. When more than one credential types are present, The user will be required to select the type and then fill in the parameters for that type, as only one credential type can be used for any given adapter instance.
- Parameters:
credentialType
- The credential type to add.
-
defineObjectType
final ObjectType defineObjectType(String key, String label)
Create a new object type definition and add it to this adapter definition.
- Parameters:
key
- The object typelabel
- Label that is displayed in the VMware Aria Operations UI for this object type.- Returns:
The created object type definition
-
addObjectTypes
final Unit addObjectTypes(List<ObjectType> objectTypes)
Adds a list of object types to this adapter definition
- Parameters:
objectTypes
- A list of object type definitions.
-
addObjectType
final Unit addObjectType(ObjectType objectType)
Adds an object type to this adapter definition
- Parameters:
objectType
- An object type definition.
-
sendResults
@JvmOverloads() final Unit sendResults(String outputPipe)
Opens the output pipe and sends the definition directly back to the server This method can only be called once per collection.
- Parameters:
outputPipe
- The path to the output pipe.
-
sendResults
@JvmOverloads() final Unit sendResults()
Opens the output pipe and sends the definition directly back to the server This method can only be called once per collection.
-
-
-
-