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

software.amazon.awscdk.services.eks.ClusterAttributes Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.eks;

/**
 * EXPERIMENTAL
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.20.6 (build 17f281e)", date = "2019-11-19T17:18:14.392Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.eks.$Module.class, fqn = "@aws-cdk/aws-eks.ClusterAttributes")
@software.amazon.jsii.Jsii.Proxy(ClusterAttributes.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ClusterAttributes extends software.amazon.jsii.JsiiSerializable {

    /**
     * The unique ARN assigned to the service by AWS in the form of arn:aws:eks:.
     * 
     * EXPERIMENTAL
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    java.lang.String getClusterArn();

    /**
     * The certificate-authority-data for your cluster.
     * 
     * EXPERIMENTAL
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    java.lang.String getClusterCertificateAuthorityData();

    /**
     * The API Server endpoint URL.
     * 
     * EXPERIMENTAL
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    java.lang.String getClusterEndpoint();

    /**
     * The physical name of the Cluster.
     * 
     * EXPERIMENTAL
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    java.lang.String getClusterName();

    /**
     * The security groups associated with this cluster.
     * 
     * EXPERIMENTAL
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    java.util.List getSecurityGroups();

    /**
     * The VPC in which this Cluster was created.
     * 
     * EXPERIMENTAL
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    software.amazon.awscdk.services.ec2.IVpc getVpc();

    /**
     * @return a {@link Builder} of {@link ClusterAttributes}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link ClusterAttributes}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static final class Builder {
        private java.lang.String clusterArn;
        private java.lang.String clusterCertificateAuthorityData;
        private java.lang.String clusterEndpoint;
        private java.lang.String clusterName;
        private java.util.List securityGroups;
        private software.amazon.awscdk.services.ec2.IVpc vpc;

        /**
         * Sets the value of ClusterArn
         * @param clusterArn The unique ARN assigned to the service by AWS in the form of arn:aws:eks:. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder clusterArn(java.lang.String clusterArn) {
            this.clusterArn = clusterArn;
            return this;
        }

        /**
         * Sets the value of ClusterCertificateAuthorityData
         * @param clusterCertificateAuthorityData The certificate-authority-data for your cluster. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder clusterCertificateAuthorityData(java.lang.String clusterCertificateAuthorityData) {
            this.clusterCertificateAuthorityData = clusterCertificateAuthorityData;
            return this;
        }

        /**
         * Sets the value of ClusterEndpoint
         * @param clusterEndpoint The API Server endpoint URL. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder clusterEndpoint(java.lang.String clusterEndpoint) {
            this.clusterEndpoint = clusterEndpoint;
            return this;
        }

        /**
         * Sets the value of ClusterName
         * @param clusterName The physical name of the Cluster. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder clusterName(java.lang.String clusterName) {
            this.clusterName = clusterName;
            return this;
        }

        /**
         * Sets the value of SecurityGroups
         * @param securityGroups The security groups associated with this cluster. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder securityGroups(java.util.List securityGroups) {
            this.securityGroups = securityGroups;
            return this;
        }

        /**
         * Sets the value of Vpc
         * @param vpc The VPC in which this Cluster was created. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder vpc(software.amazon.awscdk.services.ec2.IVpc vpc) {
            this.vpc = vpc;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link ClusterAttributes}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public ClusterAttributes build() {
            return new Jsii$Proxy(clusterArn, clusterCertificateAuthorityData, clusterEndpoint, clusterName, securityGroups, vpc);
        }
    }

    /**
     * An implementation for {@link ClusterAttributes}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ClusterAttributes {
        private final java.lang.String clusterArn;
        private final java.lang.String clusterCertificateAuthorityData;
        private final java.lang.String clusterEndpoint;
        private final java.lang.String clusterName;
        private final java.util.List securityGroups;
        private final software.amazon.awscdk.services.ec2.IVpc vpc;

        /**
         * 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.clusterArn = this.jsiiGet("clusterArn", java.lang.String.class);
            this.clusterCertificateAuthorityData = this.jsiiGet("clusterCertificateAuthorityData", java.lang.String.class);
            this.clusterEndpoint = this.jsiiGet("clusterEndpoint", java.lang.String.class);
            this.clusterName = this.jsiiGet("clusterName", java.lang.String.class);
            this.securityGroups = this.jsiiGet("securityGroups", java.util.List.class);
            this.vpc = this.jsiiGet("vpc", software.amazon.awscdk.services.ec2.IVpc.class);
        }

        /**
         * Constructor that initializes the object based on literal property values passed by the {@link Builder}.
         */
        private Jsii$Proxy(final java.lang.String clusterArn, final java.lang.String clusterCertificateAuthorityData, final java.lang.String clusterEndpoint, final java.lang.String clusterName, final java.util.List securityGroups, final software.amazon.awscdk.services.ec2.IVpc vpc) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.clusterArn = java.util.Objects.requireNonNull(clusterArn, "clusterArn is required");
            this.clusterCertificateAuthorityData = java.util.Objects.requireNonNull(clusterCertificateAuthorityData, "clusterCertificateAuthorityData is required");
            this.clusterEndpoint = java.util.Objects.requireNonNull(clusterEndpoint, "clusterEndpoint is required");
            this.clusterName = java.util.Objects.requireNonNull(clusterName, "clusterName is required");
            this.securityGroups = java.util.Objects.requireNonNull(securityGroups, "securityGroups is required");
            this.vpc = java.util.Objects.requireNonNull(vpc, "vpc is required");
        }

        @Override
        public java.lang.String getClusterArn() {
            return this.clusterArn;
        }

        @Override
        public java.lang.String getClusterCertificateAuthorityData() {
            return this.clusterCertificateAuthorityData;
        }

        @Override
        public java.lang.String getClusterEndpoint() {
            return this.clusterEndpoint;
        }

        @Override
        public java.lang.String getClusterName() {
            return this.clusterName;
        }

        @Override
        public java.util.List getSecurityGroups() {
            return this.securityGroups;
        }

        @Override
        public software.amazon.awscdk.services.ec2.IVpc getVpc() {
            return this.vpc;
        }

        @Override
        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();

            data.set("clusterArn", om.valueToTree(this.getClusterArn()));
            data.set("clusterCertificateAuthorityData", om.valueToTree(this.getClusterCertificateAuthorityData()));
            data.set("clusterEndpoint", om.valueToTree(this.getClusterEndpoint()));
            data.set("clusterName", om.valueToTree(this.getClusterName()));
            data.set("securityGroups", om.valueToTree(this.getSecurityGroups()));
            data.set("vpc", om.valueToTree(this.getVpc()));

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("@aws-cdk/aws-eks.ClusterAttributes"));
            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 boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;

            ClusterAttributes.Jsii$Proxy that = (ClusterAttributes.Jsii$Proxy) o;

            if (!clusterArn.equals(that.clusterArn)) return false;
            if (!clusterCertificateAuthorityData.equals(that.clusterCertificateAuthorityData)) return false;
            if (!clusterEndpoint.equals(that.clusterEndpoint)) return false;
            if (!clusterName.equals(that.clusterName)) return false;
            if (!securityGroups.equals(that.securityGroups)) return false;
            return this.vpc.equals(that.vpc);
        }

        @Override
        public int hashCode() {
            int result = this.clusterArn.hashCode();
            result = 31 * result + (this.clusterCertificateAuthorityData.hashCode());
            result = 31 * result + (this.clusterEndpoint.hashCode());
            result = 31 * result + (this.clusterName.hashCode());
            result = 31 * result + (this.securityGroups.hashCode());
            result = 31 * result + (this.vpc.hashCode());
            return result;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy