Class DeploymentProperties
java.lang.Object
com.azure.resourcemanager.apicenter.models.DeploymentProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentProperties>
public final class DeploymentProperties
extends Object
implements com.azure.json.JsonSerializable<DeploymentProperties>
API deployment entity properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the customProperties property: The custom metadata defined for API catalog entities.Get the definitionId property: API center-scoped definition resource ID.Get the description property: Description of the deployment.Get the environmentId property: API center-scoped environment resource ID.static DeploymentProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentProperties from the JsonReader.server()
Get the server property: The deployment server.state()
Get the state property: State of API deployment.title()
Get the title property: API deployment title.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCustomProperties
(Object customProperties) Set the customProperties property: The custom metadata defined for API catalog entities.withDefinitionId
(String definitionId) Set the definitionId property: API center-scoped definition resource ID.withDescription
(String description) Set the description property: Description of the deployment.withEnvironmentId
(String environmentId) Set the environmentId property: API center-scoped environment resource ID.withServer
(DeploymentServer server) Set the server property: The deployment server.withState
(DeploymentState state) Set the state property: State of API deployment.Set the title property: API deployment title.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeploymentProperties
public DeploymentProperties()Creates an instance of DeploymentProperties class.
-
-
Method Details
-
title
Get the title property: API deployment title.- Returns:
- the title value.
-
withTitle
Set the title property: API deployment title.- Parameters:
title
- the title value to set.- Returns:
- the DeploymentProperties object itself.
-
description
Get the description property: Description of the deployment.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the deployment.- Parameters:
description
- the description value to set.- Returns:
- the DeploymentProperties object itself.
-
environmentId
Get the environmentId property: API center-scoped environment resource ID.- Returns:
- the environmentId value.
-
withEnvironmentId
Set the environmentId property: API center-scoped environment resource ID.- Parameters:
environmentId
- the environmentId value to set.- Returns:
- the DeploymentProperties object itself.
-
definitionId
Get the definitionId property: API center-scoped definition resource ID.- Returns:
- the definitionId value.
-
withDefinitionId
Set the definitionId property: API center-scoped definition resource ID.- Parameters:
definitionId
- the definitionId value to set.- Returns:
- the DeploymentProperties object itself.
-
state
Get the state property: State of API deployment.- Returns:
- the state value.
-
withState
Set the state property: State of API deployment.- Parameters:
state
- the state value to set.- Returns:
- the DeploymentProperties object itself.
-
server
Get the server property: The deployment server.- Returns:
- the server value.
-
withServer
Set the server property: The deployment server.- Parameters:
server
- the server value to set.- Returns:
- the DeploymentProperties object itself.
-
customProperties
Get the customProperties property: The custom metadata defined for API catalog entities.- Returns:
- the customProperties value.
-
withCustomProperties
Set the customProperties property: The custom metadata defined for API catalog entities.- Parameters:
customProperties
- the customProperties value to set.- Returns:
- the DeploymentProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DeploymentProperties>
- Throws:
IOException
-
fromJson
public static DeploymentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DeploymentProperties 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 DeploymentProperties.
-