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

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

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

/**
 * Construction properties of {@link JenkinsAction}.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.10.3 (build 6bbf743)", date = "2019-05-02T10:15:47.476Z")
public interface JenkinsActionProps extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.services.codepipeline.CommonActionProps {
    /**
     * The Jenkins Provider for this Action.
     */
    software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider getJenkinsProvider();
    /**
     * The name of the project (sometimes also called job, or task) on your Jenkins installation that will be invoked by this Action.
     * 
     * Example:
     * 
     * 'MyJob'
     */
    java.lang.String getProjectName();
    /**
     * The type of the Action - Build, or Test.
     */
    software.amazon.awscdk.services.codepipeline.actions.JenkinsActionType getType();
    /**
     * The source to use as input for this build.
     */
    java.util.List getInputs();
    java.util.List getOutputs();

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

    /**
     * A builder for {@link JenkinsActionProps}
     */
    final class Builder {
        private software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider _jenkinsProvider;
        private java.lang.String _projectName;
        private software.amazon.awscdk.services.codepipeline.actions.JenkinsActionType _type;
        @javax.annotation.Nullable
        private java.util.List _inputs;
        @javax.annotation.Nullable
        private java.util.List _outputs;
        private java.lang.String _actionName;
        @javax.annotation.Nullable
        private java.lang.Number _runOrder;

        /**
         * Sets the value of JenkinsProvider
         * @param value The Jenkins Provider for this Action.
         * @return {@code this}
         */
        public Builder withJenkinsProvider(final software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider value) {
            this._jenkinsProvider = java.util.Objects.requireNonNull(value, "jenkinsProvider is required");
            return this;
        }
        /**
         * Sets the value of ProjectName
         * @param value The name of the project (sometimes also called job, or task) on your Jenkins installation that will be invoked by this Action.
         * @return {@code this}
         */
        public Builder withProjectName(final java.lang.String value) {
            this._projectName = java.util.Objects.requireNonNull(value, "projectName is required");
            return this;
        }
        /**
         * Sets the value of Type
         * @param value The type of the Action - Build, or Test.
         * @return {@code this}
         */
        public Builder withType(final software.amazon.awscdk.services.codepipeline.actions.JenkinsActionType value) {
            this._type = java.util.Objects.requireNonNull(value, "type is required");
            return this;
        }
        /**
         * Sets the value of Inputs
         * @param value The source to use as input for this build.
         * @return {@code this}
         */
        public Builder withInputs(@javax.annotation.Nullable final java.util.List value) {
            this._inputs = value;
            return this;
        }
        /**
         * Sets the value of Outputs
         * @param value the value to be set
         * @return {@code this}
         */
        public Builder withOutputs(@javax.annotation.Nullable final java.util.List value) {
            this._outputs = 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 JenkinsActionProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        public JenkinsActionProps build() {
            return new JenkinsActionProps() {
                private final software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider $jenkinsProvider = java.util.Objects.requireNonNull(_jenkinsProvider, "jenkinsProvider is required");
                private final java.lang.String $projectName = java.util.Objects.requireNonNull(_projectName, "projectName is required");
                private final software.amazon.awscdk.services.codepipeline.actions.JenkinsActionType $type = java.util.Objects.requireNonNull(_type, "type is required");
                @javax.annotation.Nullable
                private final java.util.List $inputs = _inputs;
                @javax.annotation.Nullable
                private final java.util.List $outputs = _outputs;
                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.actions.IJenkinsProvider getJenkinsProvider() {
                    return this.$jenkinsProvider;
                }

                @Override
                public java.lang.String getProjectName() {
                    return this.$projectName;
                }

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

                @Override
                public java.util.List getInputs() {
                    return this.$inputs;
                }

                @Override
                public java.util.List getOutputs() {
                    return this.$outputs;
                }

                @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("jenkinsProvider", om.valueToTree(this.getJenkinsProvider()));
                    obj.set("projectName", om.valueToTree(this.getProjectName()));
                    obj.set("type", om.valueToTree(this.getType()));
                    obj.set("inputs", om.valueToTree(this.getInputs()));
                    obj.set("outputs", om.valueToTree(this.getOutputs()));
                    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.JenkinsActionProps {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        /**
         * The Jenkins Provider for this Action.
         */
        @Override
        public software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider getJenkinsProvider() {
            return this.jsiiGet("jenkinsProvider", software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider.class);
        }

        /**
         * The name of the project (sometimes also called job, or task) on your Jenkins installation that will be invoked by this Action.
         * 
         * Example:
         * 
         * 'MyJob'
         */
        @Override
        public java.lang.String getProjectName() {
            return this.jsiiGet("projectName", java.lang.String.class);
        }

        /**
         * The type of the Action - Build, or Test.
         */
        @Override
        public software.amazon.awscdk.services.codepipeline.actions.JenkinsActionType getType() {
            return this.jsiiGet("type", software.amazon.awscdk.services.codepipeline.actions.JenkinsActionType.class);
        }

        /**
         * The source to use as input for this build.
         */
        @Override
        @javax.annotation.Nullable
        public java.util.List getInputs() {
            return this.jsiiGet("inputs", java.util.List.class);
        }

        @Override
        @javax.annotation.Nullable
        public java.util.List getOutputs() {
            return this.jsiiGet("outputs", java.util.List.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