AfdEndpointProperties Class

public final class AfdEndpointProperties
extends AfdEndpointPropertiesUpdateParameters

The JSON object that contains the properties required to create an endpoint.

Constructor Summary

Constructor Description
AfdEndpointProperties()

Creates an instance of AfdEndpointProperties class.

Method Summary

Modifier and Type Method and Description
AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope()

Get the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.

DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

static AfdEndpointProperties fromJson(JsonReader jsonReader)

Reads an instance of AfdEndpointProperties from the JsonReader.

String hostname()

Get the hostname property: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g.

String profileName()

Get the profileName property: The name of the profile which holds the endpoint.

AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AfdEndpointProperties withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope)

Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.

AfdEndpointProperties withEnabledState(EnabledState enabledState)

Set the enabledState property: Whether to enable use of this rule.

Methods inherited from AfdEndpointPropertiesUpdateParameters

Methods inherited from java.lang.Object

Constructor Details

AfdEndpointProperties

public AfdEndpointProperties()

Creates an instance of AfdEndpointProperties class.

Method Details

autoGeneratedDomainNameLabelScope

public AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope()

Get the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope. The default value is TenantReuse.

Returns:

the autoGeneratedDomainNameLabelScope value.

deploymentStatus

public DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

Returns:

the deploymentStatus value.

fromJson

public static AfdEndpointProperties fromJson(JsonReader jsonReader)

Reads an instance of AfdEndpointProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hostname

public String hostname()

Get the hostname property: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net.

Returns:

the hostname value.

profileName

public String profileName()

Get the profileName property: The name of the profile which holds the endpoint.

Overrides:

AfdEndpointProperties.profileName()

Returns:

the profileName value.

provisioningState

public AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AfdEndpointProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AfdEndpointProperties.validate()

withAutoGeneratedDomainNameLabelScope

public AfdEndpointProperties withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope)

Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope. The default value is TenantReuse.

Parameters:

autoGeneratedDomainNameLabelScope - the autoGeneratedDomainNameLabelScope value to set.

Returns:

the AfdEndpointProperties object itself.

withEnabledState

public AfdEndpointProperties withEnabledState(EnabledState enabledState)

Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.

Overrides:

AfdEndpointProperties.withEnabledState(EnabledState enabledState)

Parameters:

enabledState

Applies to