Class SupportedStackResourceProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.SupportedStackResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SupportedStackResourceProperties>
public final class SupportedStackResourceProperties
extends Object
implements com.azure.json.JsonSerializable<SupportedStackResourceProperties>
Supported stack resource properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SupportedStackResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SupportedStackResourceProperties from the JsonReader.stackId()Get the stackId property: The id of supported stack.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The version of supported stack.withStackId(String stackId) Set the stackId property: The id of supported stack.withVersion(String version) Set the version property: The version of supported stack.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
-
SupportedStackResourceProperties
public SupportedStackResourceProperties()Creates an instance of SupportedStackResourceProperties class.
-
-
Method Details
-
stackId
Get the stackId property: The id of supported stack.- Returns:
- the stackId value.
-
withStackId
Set the stackId property: The id of supported stack.- Parameters:
stackId- the stackId value to set.- Returns:
- the SupportedStackResourceProperties object itself.
-
version
Get the version property: The version of supported stack.- Returns:
- the version value.
-
withVersion
Set the version property: The version of supported stack.- Parameters:
version- the version value to set.- Returns:
- the SupportedStackResourceProperties 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<SupportedStackResourceProperties>- Throws:
IOException
-
fromJson
public static SupportedStackResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SupportedStackResourceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SupportedStackResourceProperties 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 SupportedStackResourceProperties.
-