All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdk.cloudfront.geo.locator.CloudfrontGeoLocatorProps Maven / Gradle / Ivy

package cdk.cloudfront.geo.locator;

/**
 * Properties for the CloudfrontGeoLocator construct.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.93.0 (build 1706ca5)", date = "2024-01-03T09:44:14.784Z")
@software.amazon.jsii.Jsii(module = cdk.cloudfront.geo.locator.$Module.class, fqn = "cdk-cloudfront-geo-locator.CloudfrontGeoLocatorProps")
@software.amazon.jsii.Jsii.Proxy(CloudfrontGeoLocatorProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CloudfrontGeoLocatorProps extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.ResourceProps {

    /**
     * A unique name to identify the cloudfront cache policy.
     * 

* Default: - CloudfrontGeoLocatorCachePolicy */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getCloudfrontCachePolicyName() { return null; } /** * A unique name to identify the cloudfront origin request policy. *

* Default: - CloudfrontGeoLocatorOriginRequestPolicy */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getCloudfrontOriginRequestPolicyName() { return null; } /** * The price class for the CloudFront distribution. *

* Default: - PRICE_CLASS_100 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.cloudfront.PriceClass getCloudfrontPriceClass() { return null; } /** * The ARN of the certificate. *

* Default: - undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getCustomDomainCertificateArn() { return null; } /** * The domain name for the CloudFront distribution. *

* Default: - undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getCustomDomainName() { return null; } /** * A unique name to identify the lambda function. *

* Default: - cloudfront-geo-locator */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getLambdaFunctionName() { return null; } /** * A unique name to identify the s3 bucket. *

* Default: - cloudfront-geo-locator-origin */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getS3BucketName() { return null; } /** * @return a {@link Builder} of {@link CloudfrontGeoLocatorProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CloudfrontGeoLocatorProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String cloudfrontCachePolicyName; java.lang.String cloudfrontOriginRequestPolicyName; software.amazon.awscdk.services.cloudfront.PriceClass cloudfrontPriceClass; java.lang.String customDomainCertificateArn; java.lang.String customDomainName; java.lang.String lambdaFunctionName; java.lang.String s3BucketName; java.lang.String account; java.lang.String environmentFromArn; java.lang.String physicalName; java.lang.String region; /** * Sets the value of {@link CloudfrontGeoLocatorProps#getCloudfrontCachePolicyName} * @param cloudfrontCachePolicyName A unique name to identify the cloudfront cache policy. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder cloudfrontCachePolicyName(java.lang.String cloudfrontCachePolicyName) { this.cloudfrontCachePolicyName = cloudfrontCachePolicyName; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getCloudfrontOriginRequestPolicyName} * @param cloudfrontOriginRequestPolicyName A unique name to identify the cloudfront origin request policy. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder cloudfrontOriginRequestPolicyName(java.lang.String cloudfrontOriginRequestPolicyName) { this.cloudfrontOriginRequestPolicyName = cloudfrontOriginRequestPolicyName; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getCloudfrontPriceClass} * @param cloudfrontPriceClass The price class for the CloudFront distribution. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder cloudfrontPriceClass(software.amazon.awscdk.services.cloudfront.PriceClass cloudfrontPriceClass) { this.cloudfrontPriceClass = cloudfrontPriceClass; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getCustomDomainCertificateArn} * @param customDomainCertificateArn The ARN of the certificate. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder customDomainCertificateArn(java.lang.String customDomainCertificateArn) { this.customDomainCertificateArn = customDomainCertificateArn; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getCustomDomainName} * @param customDomainName The domain name for the CloudFront distribution. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder customDomainName(java.lang.String customDomainName) { this.customDomainName = customDomainName; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getLambdaFunctionName} * @param lambdaFunctionName A unique name to identify the lambda function. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder lambdaFunctionName(java.lang.String lambdaFunctionName) { this.lambdaFunctionName = lambdaFunctionName; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getS3BucketName} * @param s3BucketName A unique name to identify the s3 bucket. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder s3BucketName(java.lang.String s3BucketName) { this.s3BucketName = s3BucketName; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getAccount} * @param account The AWS account ID this resource belongs to. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder account(java.lang.String account) { this.account = account; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getEnvironmentFromArn} * @param environmentFromArn ARN to deduce region and account from. * The ARN is parsed and the account and region are taken from the ARN. * This should be used for imported resources. *

* Cannot be supplied together with either account or region. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder environmentFromArn(java.lang.String environmentFromArn) { this.environmentFromArn = environmentFromArn; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getPhysicalName} * @param physicalName The value passed in by users to the physical name prop of the resource. *

    *
  • undefined implies that a physical name will be allocated by * CloudFormation during deployment.
  • *
  • a concrete value implies a specific physical name
  • *
  • PhysicalName.GENERATE_IF_NEEDED is a marker that indicates that a physical will only be generated * by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation.
  • *
* @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder physicalName(java.lang.String physicalName) { this.physicalName = physicalName; return this; } /** * Sets the value of {@link CloudfrontGeoLocatorProps#getRegion} * @param region The AWS region this resource belongs to. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(java.lang.String region) { this.region = region; return this; } /** * Builds the configured instance. * @return a new instance of {@link CloudfrontGeoLocatorProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CloudfrontGeoLocatorProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CloudfrontGeoLocatorProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CloudfrontGeoLocatorProps { private final java.lang.String cloudfrontCachePolicyName; private final java.lang.String cloudfrontOriginRequestPolicyName; private final software.amazon.awscdk.services.cloudfront.PriceClass cloudfrontPriceClass; private final java.lang.String customDomainCertificateArn; private final java.lang.String customDomainName; private final java.lang.String lambdaFunctionName; private final java.lang.String s3BucketName; private final java.lang.String account; private final java.lang.String environmentFromArn; private final java.lang.String physicalName; private final java.lang.String region; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.cloudfrontCachePolicyName = software.amazon.jsii.Kernel.get(this, "cloudfrontCachePolicyName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.cloudfrontOriginRequestPolicyName = software.amazon.jsii.Kernel.get(this, "cloudfrontOriginRequestPolicyName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.cloudfrontPriceClass = software.amazon.jsii.Kernel.get(this, "cloudfrontPriceClass", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.cloudfront.PriceClass.class)); this.customDomainCertificateArn = software.amazon.jsii.Kernel.get(this, "customDomainCertificateArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.customDomainName = software.amazon.jsii.Kernel.get(this, "customDomainName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.lambdaFunctionName = software.amazon.jsii.Kernel.get(this, "lambdaFunctionName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.s3BucketName = software.amazon.jsii.Kernel.get(this, "s3BucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.account = software.amazon.jsii.Kernel.get(this, "account", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.environmentFromArn = software.amazon.jsii.Kernel.get(this, "environmentFromArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.physicalName = software.amazon.jsii.Kernel.get(this, "physicalName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.cloudfrontCachePolicyName = builder.cloudfrontCachePolicyName; this.cloudfrontOriginRequestPolicyName = builder.cloudfrontOriginRequestPolicyName; this.cloudfrontPriceClass = builder.cloudfrontPriceClass; this.customDomainCertificateArn = builder.customDomainCertificateArn; this.customDomainName = builder.customDomainName; this.lambdaFunctionName = builder.lambdaFunctionName; this.s3BucketName = builder.s3BucketName; this.account = builder.account; this.environmentFromArn = builder.environmentFromArn; this.physicalName = builder.physicalName; this.region = builder.region; } @Override public final java.lang.String getCloudfrontCachePolicyName() { return this.cloudfrontCachePolicyName; } @Override public final java.lang.String getCloudfrontOriginRequestPolicyName() { return this.cloudfrontOriginRequestPolicyName; } @Override public final software.amazon.awscdk.services.cloudfront.PriceClass getCloudfrontPriceClass() { return this.cloudfrontPriceClass; } @Override public final java.lang.String getCustomDomainCertificateArn() { return this.customDomainCertificateArn; } @Override public final java.lang.String getCustomDomainName() { return this.customDomainName; } @Override public final java.lang.String getLambdaFunctionName() { return this.lambdaFunctionName; } @Override public final java.lang.String getS3BucketName() { return this.s3BucketName; } @Override public final java.lang.String getAccount() { return this.account; } @Override public final java.lang.String getEnvironmentFromArn() { return this.environmentFromArn; } @Override public final java.lang.String getPhysicalName() { return this.physicalName; } @Override public final java.lang.String getRegion() { return this.region; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getCloudfrontCachePolicyName() != null) { data.set("cloudfrontCachePolicyName", om.valueToTree(this.getCloudfrontCachePolicyName())); } if (this.getCloudfrontOriginRequestPolicyName() != null) { data.set("cloudfrontOriginRequestPolicyName", om.valueToTree(this.getCloudfrontOriginRequestPolicyName())); } if (this.getCloudfrontPriceClass() != null) { data.set("cloudfrontPriceClass", om.valueToTree(this.getCloudfrontPriceClass())); } if (this.getCustomDomainCertificateArn() != null) { data.set("customDomainCertificateArn", om.valueToTree(this.getCustomDomainCertificateArn())); } if (this.getCustomDomainName() != null) { data.set("customDomainName", om.valueToTree(this.getCustomDomainName())); } if (this.getLambdaFunctionName() != null) { data.set("lambdaFunctionName", om.valueToTree(this.getLambdaFunctionName())); } if (this.getS3BucketName() != null) { data.set("s3BucketName", om.valueToTree(this.getS3BucketName())); } if (this.getAccount() != null) { data.set("account", om.valueToTree(this.getAccount())); } if (this.getEnvironmentFromArn() != null) { data.set("environmentFromArn", om.valueToTree(this.getEnvironmentFromArn())); } if (this.getPhysicalName() != null) { data.set("physicalName", om.valueToTree(this.getPhysicalName())); } if (this.getRegion() != null) { data.set("region", om.valueToTree(this.getRegion())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("cdk-cloudfront-geo-locator.CloudfrontGeoLocatorProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CloudfrontGeoLocatorProps.Jsii$Proxy that = (CloudfrontGeoLocatorProps.Jsii$Proxy) o; if (this.cloudfrontCachePolicyName != null ? !this.cloudfrontCachePolicyName.equals(that.cloudfrontCachePolicyName) : that.cloudfrontCachePolicyName != null) return false; if (this.cloudfrontOriginRequestPolicyName != null ? !this.cloudfrontOriginRequestPolicyName.equals(that.cloudfrontOriginRequestPolicyName) : that.cloudfrontOriginRequestPolicyName != null) return false; if (this.cloudfrontPriceClass != null ? !this.cloudfrontPriceClass.equals(that.cloudfrontPriceClass) : that.cloudfrontPriceClass != null) return false; if (this.customDomainCertificateArn != null ? !this.customDomainCertificateArn.equals(that.customDomainCertificateArn) : that.customDomainCertificateArn != null) return false; if (this.customDomainName != null ? !this.customDomainName.equals(that.customDomainName) : that.customDomainName != null) return false; if (this.lambdaFunctionName != null ? !this.lambdaFunctionName.equals(that.lambdaFunctionName) : that.lambdaFunctionName != null) return false; if (this.s3BucketName != null ? !this.s3BucketName.equals(that.s3BucketName) : that.s3BucketName != null) return false; if (this.account != null ? !this.account.equals(that.account) : that.account != null) return false; if (this.environmentFromArn != null ? !this.environmentFromArn.equals(that.environmentFromArn) : that.environmentFromArn != null) return false; if (this.physicalName != null ? !this.physicalName.equals(that.physicalName) : that.physicalName != null) return false; return this.region != null ? this.region.equals(that.region) : that.region == null; } @Override public final int hashCode() { int result = this.cloudfrontCachePolicyName != null ? this.cloudfrontCachePolicyName.hashCode() : 0; result = 31 * result + (this.cloudfrontOriginRequestPolicyName != null ? this.cloudfrontOriginRequestPolicyName.hashCode() : 0); result = 31 * result + (this.cloudfrontPriceClass != null ? this.cloudfrontPriceClass.hashCode() : 0); result = 31 * result + (this.customDomainCertificateArn != null ? this.customDomainCertificateArn.hashCode() : 0); result = 31 * result + (this.customDomainName != null ? this.customDomainName.hashCode() : 0); result = 31 * result + (this.lambdaFunctionName != null ? this.lambdaFunctionName.hashCode() : 0); result = 31 * result + (this.s3BucketName != null ? this.s3BucketName.hashCode() : 0); result = 31 * result + (this.account != null ? this.account.hashCode() : 0); result = 31 * result + (this.environmentFromArn != null ? this.environmentFromArn.hashCode() : 0); result = 31 * result + (this.physicalName != null ? this.physicalName.hashCode() : 0); result = 31 * result + (this.region != null ? this.region.hashCode() : 0); return result; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy