Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cdn;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines the parameters for using CDN managed certificate for securing custom
* domain.
*/
public class CdnCertificateSourceParameters {
/**
* The odatatype property.
*/
@JsonProperty(value = "@odata\\.type", required = true)
private String odatatype;

/**
* Type of certificate used. Possible values include: 'Shared',
* 'Dedicated'.
*/
@JsonProperty(value = "certificateType", required = true)
private CertificateType certificateType;

/**
* Creates an instance of CdnCertificateSourceParameters class.
* @param certificateType type of certificate used. Possible values include: 'Shared', 'Dedicated'.
*/
public CdnCertificateSourceParameters() {
odatatype = "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters";
}

/**
* Get the odatatype value.
*
* @return the odatatype value
*/
public String odatatype() {
return this.odatatype;
}

/**
* Set the odatatype value.
*
* @param odatatype the odatatype value to set
* @return the CdnCertificateSourceParameters object itself.
*/
public CdnCertificateSourceParameters withOdatatype(String odatatype) {
this.odatatype = odatatype;
return this;
}

/**
* Get type of certificate used. Possible values include: 'Shared', 'Dedicated'.
*
* @return the certificateType value
*/
public CertificateType certificateType() {
return this.certificateType;
}

/**
* Set type of certificate used. Possible values include: 'Shared', 'Dedicated'.
*
* @param certificateType the certificateType value to set
* @return the CdnCertificateSourceParameters object itself.
*/
public CdnCertificateSourceParameters withCertificateType(CertificateType certificateType) {
this.certificateType = certificateType;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cdn;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* Defines the certificate source parameters using CDN managed certificate for
* enabling SSL.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "certificateSource")
@JsonTypeName("Cdn")
public class CdnManagedHttpsParameters extends CustomDomainHttpsParameters {
/**
* Defines the certificate source parameters using CDN managed certificate
* for enabling SSL.
*/
@JsonProperty(value = "certificateSourceParameters", required = true)
private CdnCertificateSourceParameters certificateSourceParameters;

/**
* Get defines the certificate source parameters using CDN managed certificate for enabling SSL.
*
* @return the certificateSourceParameters value
*/
public CdnCertificateSourceParameters certificateSourceParameters() {
return this.certificateSourceParameters;
}

/**
* Set defines the certificate source parameters using CDN managed certificate for enabling SSL.
*
* @param certificateSourceParameters the certificateSourceParameters value to set
* @return the CdnManagedHttpsParameters object itself.
*/
public CdnManagedHttpsParameters withCertificateSourceParameters(CdnCertificateSourceParameters certificateSourceParameters) {
this.certificateSourceParameters = certificateSourceParameters;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cdn;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for CertificateType.
*/
public final class CertificateType extends ExpandableStringEnum<CertificateType> {
/** Static value Shared for CertificateType. */
public static final CertificateType SHARED = fromString("Shared");

/** Static value Dedicated for CertificateType. */
public static final CertificateType DEDICATED = fromString("Dedicated");

/**
* Creates or finds a CertificateType from its string representation.
* @param name a name to look for
* @return the corresponding CertificateType
*/
@JsonCreator
public static CertificateType fromString(String name) {
return fromString(name, CertificateType.class);
}

/**
* @return known CertificateType values
*/
public static Collection<CertificateType> values() {
return values(CertificateType.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cdn;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* The JSON object that contains the properties to secure a custom domain.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "certificateSource")
@JsonTypeName("CustomDomainHttpsParameters")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Cdn", value = CdnManagedHttpsParameters.class),
@JsonSubTypes.Type(name = "AzureKeyVault", value = UserManagedHttpsParameters.class)
})
public class CustomDomainHttpsParameters {
/**
* Defines the TLS extension protocol that is used for secure delivery.
* Possible values include: 'ServerNameIndication', 'IPBased'.
*/
@JsonProperty(value = "protocolType", required = true)
private ProtocolType protocolType;

/**
* Get defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased'.
*
* @return the protocolType value
*/
public ProtocolType protocolType() {
return this.protocolType;
}

/**
* Set defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased'.
*
* @param protocolType the protocolType value to set
* @return the CustomDomainHttpsParameters object itself.
*/
public CustomDomainHttpsParameters withProtocolType(ProtocolType protocolType) {
this.protocolType = protocolType;
return this;
}

}
Loading