AfdEndpointPropertiesUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.fluent.models.AfdEndpointPropertiesUpdateParameters

Implements

public class AfdEndpointPropertiesUpdateParameters
implements JsonSerializable<AfdEndpointPropertiesUpdateParameters>

The JSON object containing endpoint update parameters.

Constructor Summary

Constructor Description
AfdEndpointPropertiesUpdateParameters()

Creates an instance of AfdEndpointPropertiesUpdateParameters class.

Method Summary

Modifier and Type Method and Description
EnabledState enabledState()

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

static AfdEndpointPropertiesUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of AfdEndpointPropertiesUpdateParameters from the JsonReader.

String profileName()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AfdEndpointPropertiesUpdateParameters withEnabledState(EnabledState enabledState)

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

Methods inherited from java.lang.Object

Constructor Details

AfdEndpointPropertiesUpdateParameters

public AfdEndpointPropertiesUpdateParameters()

Creates an instance of AfdEndpointPropertiesUpdateParameters class.

Method Details

enabledState

public EnabledState enabledState()

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

Returns:

the enabledState value.

fromJson

public static AfdEndpointPropertiesUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of AfdEndpointPropertiesUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

profileName

public String profileName()

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

Returns:

the profileName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabledState

public AfdEndpointPropertiesUpdateParameters withEnabledState(EnabledState enabledState)

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

Parameters:

enabledState - the enabledState value to set.

Returns:

the AfdEndpointPropertiesUpdateParameters object itself.

Applies to