ConnectionPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. network. fluent. models. ConnectionPolicyInner
- com.
- com.
public final class ConnectionPolicyInner
extends ProxyResource
ConnectionPolicy resource defined for VirtualHub.
Constructor Summary
| Constructor | Description |
|---|---|
| ConnectionPolicyInner() |
Creates an instance of Connection |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
|
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
| String |
id()
Get the id property: Resource ID. |
| String |
name()
Get the name property: The name of the resource. |
|
Connection |
properties()
Get the properties property: Properties of the Connection |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Connection |
withId(String id)
Set the id property: Resource ID. |
|
Connection |
withProperties(ConnectionPolicyProperties properties)
Set the properties property: Properties of the Connection |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ConnectionPolicyInner
public ConnectionPolicyInner()
Creates an instance of ConnectionPolicyInner class.
Method Details
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static ConnectionPolicyInner fromJson(JsonReader jsonReader)
Reads an instance of ConnectionPolicyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID.
Overrides:
ConnectionPolicyInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ConnectionPolicyInner.name()Returns:
properties
public ConnectionPolicyProperties properties()
Get the properties property: Properties of the ConnectionPolicy resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ConnectionPolicyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ConnectionPolicyInner.type()Returns:
validate
public void validate()
Validates the instance.
withId
public ConnectionPolicyInner withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withProperties
public ConnectionPolicyInner withProperties(ConnectionPolicyProperties properties)
Set the properties property: Properties of the ConnectionPolicy resource.
Parameters:
Returns: