Share via


CdnCertificateSourceParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.CdnCertificateSourceParameters

Implements

public final class CdnCertificateSourceParameters
implements JsonSerializable<CdnCertificateSourceParameters>

Defines the parameters for using CDN managed certificate for securing custom domain.

Constructor Summary

Constructor Description
CdnCertificateSourceParameters()

Creates an instance of CdnCertificateSourceParameters class.

Method Summary

Modifier and Type Method and Description
CertificateType certificateType()

Get the certificateType property: Type of certificate used.

static CdnCertificateSourceParameters fromJson(JsonReader jsonReader)

Reads an instance of CdnCertificateSourceParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String typeName()

Get the typeName property: The typeName property.

void validate()

Validates the instance.

CdnCertificateSourceParameters withCertificateType(CertificateType certificateType)

Set the certificateType property: Type of certificate used.

CdnCertificateSourceParameters withTypeName(String typeName)

Set the typeName property: The typeName property.

Methods inherited from java.lang.Object

Constructor Details

CdnCertificateSourceParameters

public CdnCertificateSourceParameters()

Creates an instance of CdnCertificateSourceParameters class.

Method Details

certificateType

public CertificateType certificateType()

Get the certificateType property: Type of certificate used.

Returns:

the certificateType value.

fromJson

public static CdnCertificateSourceParameters fromJson(JsonReader jsonReader)

Reads an instance of CdnCertificateSourceParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

typeName

public String typeName()

Get the typeName property: The typeName property.

Returns:

the typeName value.

validate

public void validate()

Validates the instance.

withCertificateType

public CdnCertificateSourceParameters withCertificateType(CertificateType certificateType)

Set the certificateType property: Type of certificate used.

Parameters:

certificateType - the certificateType value to set.

Returns:

the CdnCertificateSourceParameters object itself.

withTypeName

public CdnCertificateSourceParameters withTypeName(String typeName)

Set the typeName property: The typeName property.

Parameters:

typeName - the typeName value to set.

Returns:

the CdnCertificateSourceParameters object itself.

Applies to