ParameterContract Class
- java.
lang. Object - com.
azure. resourcemanager. apimanagement. models. ParameterContract
- com.
Implements
public final class ParameterContract
implements JsonSerializable<ParameterContract>
Operation parameters details.
Constructor Summary
| Constructor | Description |
|---|---|
| ParameterContract() |
Creates an instance of Parameter |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
defaultValue()
Get the default |
| String |
description()
Get the description property: Parameter description. |
|
Map<String,Parameter |
examples()
Get the examples property: Exampled defined for the parameter. |
|
static
Parameter |
fromJson(JsonReader jsonReader)
Reads an instance of Parameter |
| String |
name()
Get the name property: Parameter name. |
| Boolean |
required()
Get the required property: Specifies whether parameter is required or not. |
| String |
schemaId()
Get the schema |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Parameter type. |
| String |
typeName()
Get the type |
| void |
validate()
Validates the instance. |
| List<String> |
values()
Get the values property: Parameter values. |
|
Parameter |
withDefaultValue(String defaultValue)
Set the default |
|
Parameter |
withDescription(String description)
Set the description property: Parameter description. |
|
Parameter |
withExamples(Map<String,ParameterExampleContract> examples)
Set the examples property: Exampled defined for the parameter. |
|
Parameter |
withName(String name)
Set the name property: Parameter name. |
|
Parameter |
withRequired(Boolean required)
Set the required property: Specifies whether parameter is required or not. |
|
Parameter |
withSchemaId(String schemaId)
Set the schema |
|
Parameter |
withType(String type)
Set the type property: Parameter type. |
|
Parameter |
withTypeName(String typeName)
Set the type |
|
Parameter |
withValues(List<String> values)
Set the values property: Parameter values. |
Methods inherited from java.lang.Object
Constructor Details
ParameterContract
public ParameterContract()
Creates an instance of ParameterContract class.
Method Details
defaultValue
public String defaultValue()
Get the defaultValue property: Default parameter value.
Returns:
description
public String description()
Get the description property: Parameter description.
Returns:
examples
public Map<String,ParameterExampleContract> examples()
Get the examples property: Exampled defined for the parameter.
Returns:
fromJson
public static ParameterContract fromJson(JsonReader jsonReader)
Reads an instance of ParameterContract from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Parameter name.
Returns:
required
public Boolean required()
Get the required property: Specifies whether parameter is required or not.
Returns:
schemaId
public String schemaId()
Get the schemaId property: Schema identifier.
Returns:
toJson
type
public String type()
Get the type property: Parameter type.
Returns:
typeName
public String typeName()
Get the typeName property: Type name defined by the schema.
Returns:
validate
public void validate()
Validates the instance.
values
public List<String> values()
Get the values property: Parameter values.
Returns:
withDefaultValue
public ParameterContract withDefaultValue(String defaultValue)
Set the defaultValue property: Default parameter value.
Parameters:
Returns:
withDescription
public ParameterContract withDescription(String description)
Set the description property: Parameter description.
Parameters:
Returns:
withExamples
public ParameterContract withExamples(Map<String,ParameterExampleContract> examples)
Set the examples property: Exampled defined for the parameter.
Parameters:
Returns:
withName
public ParameterContract withName(String name)
Set the name property: Parameter name.
Parameters:
Returns:
withRequired
public ParameterContract withRequired(Boolean required)
Set the required property: Specifies whether parameter is required or not.
Parameters:
Returns:
withSchemaId
public ParameterContract withSchemaId(String schemaId)
Set the schemaId property: Schema identifier.
Parameters:
Returns:
withType
public ParameterContract withType(String type)
Set the type property: Parameter type.
Parameters:
Returns:
withTypeName
public ParameterContract withTypeName(String typeName)
Set the typeName property: Type name defined by the schema.
Parameters:
Returns:
withValues
public ParameterContract withValues(List<String> values)
Set the values property: Parameter values.
Parameters:
Returns: