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

software.amazon.awscdk.services.lambda.CfnVersionProps Maven / Gradle / Ivy

package software.amazon.awscdk.services.lambda;

/**
 * Properties for defining a `AWS::Lambda::Version`
 * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.7.15 (build e429c41)", date = "2019-03-20T13:00:17.307Z")
public interface CfnVersionProps extends software.amazon.jsii.JsiiSerializable {
    /**
     * `AWS::Lambda::Version.FunctionName`
     * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
     */
    java.lang.String getFunctionName();
    /**
     * `AWS::Lambda::Version.FunctionName`
     * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
     */
    void setFunctionName(final java.lang.String value);
    /**
     * `AWS::Lambda::Version.CodeSha256`
     * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
     */
    java.lang.String getCodeSha256();
    /**
     * `AWS::Lambda::Version.CodeSha256`
     * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
     */
    void setCodeSha256(final java.lang.String value);
    /**
     * `AWS::Lambda::Version.Description`
     * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
     */
    java.lang.String getDescription();
    /**
     * `AWS::Lambda::Version.Description`
     * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
     */
    void setDescription(final java.lang.String value);

    /**
     * @return a {@link Builder} of {@link CfnVersionProps}
     */
    static Builder builder() {
        return new Builder();
    }

    /**
     * A builder for {@link CfnVersionProps}
     */
    final class Builder {
        private java.lang.String _functionName;
        @javax.annotation.Nullable
        private java.lang.String _codeSha256;
        @javax.annotation.Nullable
        private java.lang.String _description;

        /**
         * Sets the value of FunctionName
         * @param value `AWS::Lambda::Version.FunctionName`
         * @return {@code this}
         */
        public Builder withFunctionName(final java.lang.String value) {
            this._functionName = java.util.Objects.requireNonNull(value, "functionName is required");
            return this;
        }
        /**
         * Sets the value of CodeSha256
         * @param value `AWS::Lambda::Version.CodeSha256`
         * @return {@code this}
         */
        public Builder withCodeSha256(@javax.annotation.Nullable final java.lang.String value) {
            this._codeSha256 = value;
            return this;
        }
        /**
         * Sets the value of Description
         * @param value `AWS::Lambda::Version.Description`
         * @return {@code this}
         */
        public Builder withDescription(@javax.annotation.Nullable final java.lang.String value) {
            this._description = value;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link CfnVersionProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        public CfnVersionProps build() {
            return new CfnVersionProps() {
                private java.lang.String $functionName = java.util.Objects.requireNonNull(_functionName, "functionName is required");
                @javax.annotation.Nullable
                private java.lang.String $codeSha256 = _codeSha256;
                @javax.annotation.Nullable
                private java.lang.String $description = _description;

                @Override
                public java.lang.String getFunctionName() {
                    return this.$functionName;
                }

                @Override
                public void setFunctionName(final java.lang.String value) {
                    this.$functionName = java.util.Objects.requireNonNull(value, "functionName is required");
                }

                @Override
                public java.lang.String getCodeSha256() {
                    return this.$codeSha256;
                }

                @Override
                public void setCodeSha256(@javax.annotation.Nullable final java.lang.String value) {
                    this.$codeSha256 = value;
                }

                @Override
                public java.lang.String getDescription() {
                    return this.$description;
                }

                @Override
                public void setDescription(@javax.annotation.Nullable final java.lang.String value) {
                    this.$description = value;
                }

            };
        }
    }

    /**
     * A proxy class which represents a concrete javascript instance of this type.
     */
    final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.lambda.CfnVersionProps {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        /**
         * `AWS::Lambda::Version.FunctionName`
         * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
         */
        @Override
        public java.lang.String getFunctionName() {
            return this.jsiiGet("functionName", java.lang.String.class);
        }

        /**
         * `AWS::Lambda::Version.FunctionName`
         * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
         */
        @Override
        public void setFunctionName(final java.lang.String value) {
            this.jsiiSet("functionName", java.util.Objects.requireNonNull(value, "functionName is required"));
        }

        /**
         * `AWS::Lambda::Version.CodeSha256`
         * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.String getCodeSha256() {
            return this.jsiiGet("codeSha256", java.lang.String.class);
        }

        /**
         * `AWS::Lambda::Version.CodeSha256`
         * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
         */
        @Override
        public void setCodeSha256(@javax.annotation.Nullable final java.lang.String value) {
            this.jsiiSet("codeSha256", value);
        }

        /**
         * `AWS::Lambda::Version.Description`
         * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.String getDescription() {
            return this.jsiiGet("description", java.lang.String.class);
        }

        /**
         * `AWS::Lambda::Version.Description`
         * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
         */
        @Override
        public void setDescription(@javax.annotation.Nullable final java.lang.String value) {
            this.jsiiSet("description", value);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy