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

software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionProps Maven / Gradle / Ivy

package software.amazon.awscdk.services.codepipeline.actions;

/**
 * Construction properties of the {@link CodeBuildAction CodeBuild build CodePipeline action}.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.10.3 (build 6bbf743)", date = "2019-05-02T10:15:47.471Z")
public interface CodeBuildActionProps extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.services.codepipeline.CommonActionProps {
    /**
     * The source to use as input for this action.
     */
    software.amazon.awscdk.services.codepipeline.Artifact getInput();
    /**
     * The action's Project.
     */
    software.amazon.awscdk.services.codebuild.IProject getProject();
    /**
     * The list of additional input Artifacts for this action.
     */
    java.util.List getExtraInputs();
    /**
     * The list of additional output Artifacts for this action.
     */
    java.util.List getExtraOutputs();
    /**
     * The optional primary output Artifact of this action.
     */
    software.amazon.awscdk.services.codepipeline.Artifact getOutput();
    /**
     * The type of the action that determines its CodePipeline Category - Build, or Test.
     * 
     * Default: CodeBuildActionType.BUILD
     */
    software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionType getType();

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

    /**
     * A builder for {@link CodeBuildActionProps}
     */
    final class Builder {
        private software.amazon.awscdk.services.codepipeline.Artifact _input;
        private software.amazon.awscdk.services.codebuild.IProject _project;
        @javax.annotation.Nullable
        private java.util.List _extraInputs;
        @javax.annotation.Nullable
        private java.util.List _extraOutputs;
        @javax.annotation.Nullable
        private software.amazon.awscdk.services.codepipeline.Artifact _output;
        @javax.annotation.Nullable
        private software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionType _type;
        private java.lang.String _actionName;
        @javax.annotation.Nullable
        private java.lang.Number _runOrder;

        /**
         * Sets the value of Input
         * @param value The source to use as input for this action.
         * @return {@code this}
         */
        public Builder withInput(final software.amazon.awscdk.services.codepipeline.Artifact value) {
            this._input = java.util.Objects.requireNonNull(value, "input is required");
            return this;
        }
        /**
         * Sets the value of Project
         * @param value The action's Project.
         * @return {@code this}
         */
        public Builder withProject(final software.amazon.awscdk.services.codebuild.IProject value) {
            this._project = java.util.Objects.requireNonNull(value, "project is required");
            return this;
        }
        /**
         * Sets the value of ExtraInputs
         * @param value The list of additional input Artifacts for this action.
         * @return {@code this}
         */
        public Builder withExtraInputs(@javax.annotation.Nullable final java.util.List value) {
            this._extraInputs = value;
            return this;
        }
        /**
         * Sets the value of ExtraOutputs
         * @param value The list of additional output Artifacts for this action.
         * @return {@code this}
         */
        public Builder withExtraOutputs(@javax.annotation.Nullable final java.util.List value) {
            this._extraOutputs = value;
            return this;
        }
        /**
         * Sets the value of Output
         * @param value The optional primary output Artifact of this action.
         * @return {@code this}
         */
        public Builder withOutput(@javax.annotation.Nullable final software.amazon.awscdk.services.codepipeline.Artifact value) {
            this._output = value;
            return this;
        }
        /**
         * Sets the value of Type
         * @param value The type of the action that determines its CodePipeline Category - Build, or Test.
         * @return {@code this}
         */
        public Builder withType(@javax.annotation.Nullable final software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionType value) {
            this._type = value;
            return this;
        }
        /**
         * Sets the value of ActionName
         * @param value The physical, human-readable name of the Action. Not that Action names must be unique within a single Stage.
         * @return {@code this}
         */
        public Builder withActionName(final java.lang.String value) {
            this._actionName = java.util.Objects.requireNonNull(value, "actionName is required");
            return this;
        }
        /**
         * Sets the value of RunOrder
         * @param value The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.
         * @return {@code this}
         */
        public Builder withRunOrder(@javax.annotation.Nullable final java.lang.Number value) {
            this._runOrder = value;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link CodeBuildActionProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        public CodeBuildActionProps build() {
            return new CodeBuildActionProps() {
                private final software.amazon.awscdk.services.codepipeline.Artifact $input = java.util.Objects.requireNonNull(_input, "input is required");
                private final software.amazon.awscdk.services.codebuild.IProject $project = java.util.Objects.requireNonNull(_project, "project is required");
                @javax.annotation.Nullable
                private final java.util.List $extraInputs = _extraInputs;
                @javax.annotation.Nullable
                private final java.util.List $extraOutputs = _extraOutputs;
                @javax.annotation.Nullable
                private final software.amazon.awscdk.services.codepipeline.Artifact $output = _output;
                @javax.annotation.Nullable
                private final software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionType $type = _type;
                private final java.lang.String $actionName = java.util.Objects.requireNonNull(_actionName, "actionName is required");
                @javax.annotation.Nullable
                private final java.lang.Number $runOrder = _runOrder;

                @Override
                public software.amazon.awscdk.services.codepipeline.Artifact getInput() {
                    return this.$input;
                }

                @Override
                public software.amazon.awscdk.services.codebuild.IProject getProject() {
                    return this.$project;
                }

                @Override
                public java.util.List getExtraInputs() {
                    return this.$extraInputs;
                }

                @Override
                public java.util.List getExtraOutputs() {
                    return this.$extraOutputs;
                }

                @Override
                public software.amazon.awscdk.services.codepipeline.Artifact getOutput() {
                    return this.$output;
                }

                @Override
                public software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionType getType() {
                    return this.$type;
                }

                @Override
                public java.lang.String getActionName() {
                    return this.$actionName;
                }

                @Override
                public java.lang.Number getRunOrder() {
                    return this.$runOrder;
                }

                public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
                    com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
                    com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
                    obj.set("input", om.valueToTree(this.getInput()));
                    obj.set("project", om.valueToTree(this.getProject()));
                    obj.set("extraInputs", om.valueToTree(this.getExtraInputs()));
                    obj.set("extraOutputs", om.valueToTree(this.getExtraOutputs()));
                    obj.set("output", om.valueToTree(this.getOutput()));
                    obj.set("type", om.valueToTree(this.getType()));
                    obj.set("actionName", om.valueToTree(this.getActionName()));
                    obj.set("runOrder", om.valueToTree(this.getRunOrder()));
                    return obj;
                }

            };
        }
    }

    /**
     * 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.codepipeline.actions.CodeBuildActionProps {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        /**
         * The source to use as input for this action.
         */
        @Override
        public software.amazon.awscdk.services.codepipeline.Artifact getInput() {
            return this.jsiiGet("input", software.amazon.awscdk.services.codepipeline.Artifact.class);
        }

        /**
         * The action's Project.
         */
        @Override
        public software.amazon.awscdk.services.codebuild.IProject getProject() {
            return this.jsiiGet("project", software.amazon.awscdk.services.codebuild.IProject.class);
        }

        /**
         * The list of additional input Artifacts for this action.
         */
        @Override
        @javax.annotation.Nullable
        public java.util.List getExtraInputs() {
            return this.jsiiGet("extraInputs", java.util.List.class);
        }

        /**
         * The list of additional output Artifacts for this action.
         */
        @Override
        @javax.annotation.Nullable
        public java.util.List getExtraOutputs() {
            return this.jsiiGet("extraOutputs", java.util.List.class);
        }

        /**
         * The optional primary output Artifact of this action.
         */
        @Override
        @javax.annotation.Nullable
        public software.amazon.awscdk.services.codepipeline.Artifact getOutput() {
            return this.jsiiGet("output", software.amazon.awscdk.services.codepipeline.Artifact.class);
        }

        /**
         * The type of the action that determines its CodePipeline Category - Build, or Test.
         * 
         * Default: CodeBuildActionType.BUILD
         */
        @Override
        @javax.annotation.Nullable
        public software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionType getType() {
            return this.jsiiGet("type", software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionType.class);
        }

        /**
         * The physical, human-readable name of the Action. Not that Action names must be unique within a single Stage.
         */
        @Override
        public java.lang.String getActionName() {
            return this.jsiiGet("actionName", java.lang.String.class);
        }

        /**
         * The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.
         * 
         * Default: 1
         * 
         * @see https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.Number getRunOrder() {
            return this.jsiiGet("runOrder", java.lang.Number.class);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy