Class SwapResourceInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.SwapResourceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SwapResourceInner>
public final class SwapResourceInner
extends Object
implements com.azure.json.JsonSerializable<SwapResourceInner>
SwapResource to represent slot type on the specified cloud service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SwapResourceInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SwapResourceInner from the JsonReader.id()Get the id property: Resource Id.name()Get the name property: Resource name.Get the properties property: Swap resource properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type.voidvalidate()Validates the instance.withProperties(SwapResourceProperties properties) Set the properties property: Swap resource properties.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
-
SwapResourceInner
public SwapResourceInner()Creates an instance of SwapResourceInner class.
-
-
Method Details
-
id
Get the id property: Resource Id.- Returns:
- the id value.
-
name
Get the name property: Resource name.- Returns:
- the name value.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
properties
Get the properties property: Swap resource properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: Swap resource properties.- Parameters:
properties- the properties value to set.- Returns:
- the SwapResourceInner 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<SwapResourceInner>- Throws:
IOException
-
fromJson
Reads an instance of SwapResourceInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SwapResourceInner 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 SwapResourceInner.
-