DdosProtectionPlanInner Class

public final class DdosProtectionPlanInner
extends Resource

A DDoS protection plan in a resource group.

Constructor Summary

Constructor Description
DdosProtectionPlanInner()

Creates an instance of DdosProtectionPlanInner class.

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 DdosProtectionPlanInner fromJson(JsonReader jsonReader)

Reads an instance of DdosProtectionPlanInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS protection plan resource.

List<SubResource> publicIpAddresses()

Get the publicIpAddresses property: The list of public IPs associated with the DDoS protection plan resource.

String resourceGuid()

Get the resourceGuid property: The resource GUID property of the DDoS protection plan resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<SubResource> virtualNetworks()

Get the virtualNetworks property: The list of virtual networks associated with the DDoS protection plan resource.

DdosProtectionPlanInner withLocation(String location)
DdosProtectionPlanInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DdosProtectionPlanInner

public DdosProtectionPlanInner()

Creates an instance of DdosProtectionPlanInner class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static DdosProtectionPlanInner fromJson(JsonReader jsonReader)

Reads an instance of DdosProtectionPlanInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DdosProtectionPlanInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DdosProtectionPlanInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DdosProtectionPlanInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the DDoS protection plan resource.

Returns:

the provisioningState value.

publicIpAddresses

public List publicIpAddresses()

Get the publicIpAddresses property: The list of public IPs associated with the DDoS protection plan resource. This list is read-only.

Returns:

the publicIpAddresses value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.

Returns:

the resourceGuid value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DdosProtectionPlanInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DdosProtectionPlanInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetworks

public List virtualNetworks()

Get the virtualNetworks property: The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.

Returns:

the virtualNetworks value.

withLocation

public DdosProtectionPlanInner withLocation(String location)

Overrides:

DdosProtectionPlanInner.withLocation(String location)

Parameters:

location

withTags

public DdosProtectionPlanInner withTags(Map tags)

Overrides:

DdosProtectionPlanInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to