ApplicationGatewayFrontendPort Class

public final class ApplicationGatewayFrontendPort
extends SubResource

Frontend port of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayFrontendPort()

Creates an instance of ApplicationGatewayFrontendPort 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 ApplicationGatewayFrontendPort fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFrontendPort from the JsonReader.

String name()

Get the name property: Name of the frontend port that is unique within an Application Gateway.

Integer port()

Get the port property: Frontend port.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the frontend port resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource.

void validate()

Validates the instance.

ApplicationGatewayFrontendPort withId(String id)
ApplicationGatewayFrontendPort withName(String name)

Set the name property: Name of the frontend port that is unique within an Application Gateway.

ApplicationGatewayFrontendPort withPort(Integer port)

Set the port property: Frontend port.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayFrontendPort

public ApplicationGatewayFrontendPort()

Creates an instance of ApplicationGatewayFrontendPort 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 ApplicationGatewayFrontendPort fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFrontendPort from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayFrontendPort 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 ApplicationGatewayFrontendPort.

name

public String name()

Get the name property: Name of the frontend port that is unique within an Application Gateway.

Returns:

the name value.

port

public Integer port()

Get the port property: Frontend port.

Returns:

the port value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the frontend port resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplicationGatewayFrontendPort.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public ApplicationGatewayFrontendPort withId(String id)

Overrides:

ApplicationGatewayFrontendPort.withId(String id)

Parameters:

id

withName

public ApplicationGatewayFrontendPort withName(String name)

Set the name property: Name of the frontend port that is unique within an Application Gateway.

Parameters:

name - the name value to set.

Returns:

the ApplicationGatewayFrontendPort object itself.

withPort

public ApplicationGatewayFrontendPort withPort(Integer port)

Set the port property: Frontend port.

Parameters:

port - the port value to set.

Returns:

the ApplicationGatewayFrontendPort object itself.

Applies to