SwapResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. network. fluent. models. SwapResourceInner
- com.
- com.
public final class SwapResourceInner
extends ProxyResource
SwapResource to represent slot type on the specified cloud service.
Constructor Summary
| Constructor | Description |
|---|---|
| SwapResourceInner() |
Creates an instance of Swap |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Swap |
fromJson(JsonReader jsonReader)
Reads an instance of Swap |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
|
Swap |
properties()
Get the properties property: Swap resource properties. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Swap |
withProperties(SwapResourceProperties properties)
Set the properties property: Swap resource properties. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
SwapResourceInner
public SwapResourceInner()
Creates an instance of SwapResourceInner class.
Method Details
fromJson
public static SwapResourceInner fromJson(JsonReader jsonReader)
Reads an instance of SwapResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SwapResourceInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SwapResourceInner.name()Returns:
properties
public SwapResourceProperties properties()
Get the properties property: Swap resource properties.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SwapResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SwapResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withProperties
public SwapResourceInner withProperties(SwapResourceProperties properties)
Set the properties property: Swap resource properties.
Parameters:
Returns: