@Generated(value="OracleSDKGenerator", comments="API Version: 20190506") public final class ParameterDefinition extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A parameter to a resource.
Note: Objects should always be created or deserialized using the ParameterDefinition.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the ParameterDefinition.Builder
, which maintain a
set of all explicitly set fields called ParameterDefinition.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ParameterDefinition.Builder |
static class |
ParameterDefinition.Direction
Is this parameter an input parameter, output parameter, or both?
|
static class |
ParameterDefinition.Type
Enumerated parameter type.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ParameterDefinition(String name,
ParameterDefinition.Type type,
String description,
Boolean isRequired,
Boolean isSensitive,
String defaultValue,
Integer minLength,
Integer maxLength,
String pattern,
ParameterDefinition.Direction direction,
String uiPlacementHint,
Object resourceTypeMetadata)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ParameterDefinition.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getDefaultValue()
Default value for the parameter.
|
String |
getDescription()
Description of the parameter.
|
ParameterDefinition.Direction |
getDirection()
Is this parameter an input parameter, output parameter, or both?
|
Boolean |
getIsRequired()
Is this parameter required.
|
Boolean |
getIsSensitive()
Is the data for this parameter sensitive (e.g.
|
Integer |
getMaxLength()
Used for character string types such as STRING to constrain the length of the value
|
Integer |
getMinLength()
Used for character string types such as STRING to constrain the length of the value
|
String |
getName()
The name of the parameter
|
String |
getPattern()
Regular expression used to validate the value of a string type such as STRING
|
Object |
getResourceTypeMetadata()
Any configuration needed to help the resource type process this parameter (e.g.
|
ParameterDefinition.Type |
getType()
Enumerated parameter type.
|
String |
getUiPlacementHint()
A forward-slash-delimited ‘path’ in an imaginary hierarchy, at which this parameter’s UI
widgets should be placed
|
int |
hashCode() |
ParameterDefinition.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"name","type","description","isRequired","isSensitive","defaultValue","minLength","maxLength","pattern","direction","uiPlacementHint","resourceTypeMetadata"}) public ParameterDefinition(String name, ParameterDefinition.Type type, String description, Boolean isRequired, Boolean isSensitive, String defaultValue, Integer minLength, Integer maxLength, String pattern, ParameterDefinition.Direction direction, String uiPlacementHint, Object resourceTypeMetadata)
public static ParameterDefinition.Builder builder()
Create a new builder.
public ParameterDefinition.Builder toBuilder()
public String getName()
The name of the parameter
public ParameterDefinition.Type getType()
Enumerated parameter type.
public String getDescription()
Description of the parameter.
public Boolean getIsRequired()
Is this parameter required. Ignored for parameters with direction = OUTPUT.
public Boolean getIsSensitive()
Is the data for this parameter sensitive (e.g. should the data be hidden in UI, encrypted if stored, etc.)
public String getDefaultValue()
Default value for the parameter.
public Integer getMinLength()
Used for character string types such as STRING to constrain the length of the value
public Integer getMaxLength()
Used for character string types such as STRING to constrain the length of the value
public String getPattern()
Regular expression used to validate the value of a string type such as STRING
public ParameterDefinition.Direction getDirection()
Is this parameter an input parameter, output parameter, or both?
public String getUiPlacementHint()
A forward-slash-delimited ‘path’ in an imaginary hierarchy, at which this parameter’s UI widgets should be placed
public Object getResourceTypeMetadata()
Any configuration needed to help the resource type process this parameter (e.g. link to manifest, etc.).
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.