Skip to content
Closed
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,132 @@
/**
* 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 the cache expiration action.
*/
public class CacheExpirationActionParameters {
/**
* The odatatype property.
*/
@JsonProperty(value = "@odata\\.type", required = true)
private String odatatype;

/**
* Caching behavior for the requests that include query strings. Possible
* values include: 'BypassCache', 'Override', 'SetIfMissing'.
*/
@JsonProperty(value = "cacheBehavior", required = true)
private String cacheBehavior;

/**
* The level at which the content needs to be cached.
*/
@JsonProperty(value = "cacheType", required = true)
private String cacheType;

/**
* The duration for which the content needs to be cached. Allowed format is
* [d.]hh:mm:ss.
*/
@JsonProperty(value = "cacheDuration")
private String cacheDuration;

/**
* Creates an instance of CacheExpirationActionParameters class.
* @param cacheBehavior caching behavior for the requests that include query strings. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.
*/
public CacheExpirationActionParameters() {
odatatype = "Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters";
cacheType = "All";
}

/**
* 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 CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withOdatatype(String odatatype) {
this.odatatype = odatatype;
return this;
}

/**
* Get caching behavior for the requests that include query strings. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.
*
* @return the cacheBehavior value
*/
public String cacheBehavior() {
return this.cacheBehavior;
}

/**
* Set caching behavior for the requests that include query strings. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.
*
* @param cacheBehavior the cacheBehavior value to set
* @return the CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withCacheBehavior(String cacheBehavior) {
this.cacheBehavior = cacheBehavior;
return this;
}

/**
* Get the level at which the content needs to be cached.
*
* @return the cacheType value
*/
public String cacheType() {
return this.cacheType;
}

/**
* Set the level at which the content needs to be cached.
*
* @param cacheType the cacheType value to set
* @return the CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withCacheType(String cacheType) {
this.cacheType = cacheType;
return this;
}

/**
* Get the duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.
*
* @return the cacheDuration value
*/
public String cacheDuration() {
return this.cacheDuration;
}

/**
* Set the duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss.
*
* @param cacheDuration the cacheDuration value to set
* @return the CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withCacheDuration(String cacheDuration) {
this.cacheDuration = cacheDuration;
return this;
}

}
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,77 @@
/**
* 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;

/**
* Input of CheckNameAvailability API.
*/
public class CheckNameAvailabilityInput {
/**
* The resource name to validate.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The type of the resource whose name is to be validated.
*/
@JsonProperty(value = "type", required = true)
private String type;

/**
* Creates an instance of CheckNameAvailabilityInput class.
* @param name the resource name to validate.
*/
public CheckNameAvailabilityInput() {
type = "Microsoft.Cdn/Profiles/Endpoints";
}

/**
* Get the resource name to validate.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the resource name to validate.
*
* @param name the name value to set
* @return the CheckNameAvailabilityInput object itself.
*/
public CheckNameAvailabilityInput withName(String name) {
this.name = name;
return this;
}

/**
* Get the type of the resource whose name is to be validated.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type of the resource whose name is to be validated.
*
* @param type the type value to set
* @return the CheckNameAvailabilityInput object itself.
*/
public CheckNameAvailabilityInput withType(String type) {
this.type = type;
return this;
}

}
Loading