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

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

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

@javax.annotation.Generated(value = "jsii-pacmak/0.10.3 (build 6bbf743)", date = "2019-05-02T10:15:47.478Z")
public interface JenkinsProviderProps extends software.amazon.jsii.JsiiSerializable {
    /**
     * The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project.
     * 
     * Example:
     * 
     * 'MyJenkinsProvider'
     */
    java.lang.String getProviderName();
    /**
     * The base URL of your Jenkins server.
     * 
     * Example:
     * 
     * 'http://myjenkins.com:8080'
     */
    java.lang.String getServerUrl();
    /**
     * Whether to immediately register a Jenkins Provider for the build category. The Provider will always be registered if you create a {@link JenkinsAction}.
     */
    java.lang.Boolean getForBuild();
    /**
     * Whether to immediately register a Jenkins Provider for the test category. The Provider will always be registered if you create a {@link JenkinsTestAction}.
     */
    java.lang.Boolean getForTest();
    /**
     * The version of your provider.
     * 
     * Default: '1'
     */
    java.lang.String getVersion();

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

    /**
     * A builder for {@link JenkinsProviderProps}
     */
    final class Builder {
        private java.lang.String _providerName;
        private java.lang.String _serverUrl;
        @javax.annotation.Nullable
        private java.lang.Boolean _forBuild;
        @javax.annotation.Nullable
        private java.lang.Boolean _forTest;
        @javax.annotation.Nullable
        private java.lang.String _version;

        /**
         * Sets the value of ProviderName
         * @param value The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project.
         * @return {@code this}
         */
        public Builder withProviderName(final java.lang.String value) {
            this._providerName = java.util.Objects.requireNonNull(value, "providerName is required");
            return this;
        }
        /**
         * Sets the value of ServerUrl
         * @param value The base URL of your Jenkins server.
         * @return {@code this}
         */
        public Builder withServerUrl(final java.lang.String value) {
            this._serverUrl = java.util.Objects.requireNonNull(value, "serverUrl is required");
            return this;
        }
        /**
         * Sets the value of ForBuild
         * @param value Whether to immediately register a Jenkins Provider for the build category. The Provider will always be registered if you create a {@link JenkinsAction}.
         * @return {@code this}
         */
        public Builder withForBuild(@javax.annotation.Nullable final java.lang.Boolean value) {
            this._forBuild = value;
            return this;
        }
        /**
         * Sets the value of ForTest
         * @param value Whether to immediately register a Jenkins Provider for the test category. The Provider will always be registered if you create a {@link JenkinsTestAction}.
         * @return {@code this}
         */
        public Builder withForTest(@javax.annotation.Nullable final java.lang.Boolean value) {
            this._forTest = value;
            return this;
        }
        /**
         * Sets the value of Version
         * @param value The version of your provider.
         * @return {@code this}
         */
        public Builder withVersion(@javax.annotation.Nullable final java.lang.String value) {
            this._version = value;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link JenkinsProviderProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        public JenkinsProviderProps build() {
            return new JenkinsProviderProps() {
                private final java.lang.String $providerName = java.util.Objects.requireNonNull(_providerName, "providerName is required");
                private final java.lang.String $serverUrl = java.util.Objects.requireNonNull(_serverUrl, "serverUrl is required");
                @javax.annotation.Nullable
                private final java.lang.Boolean $forBuild = _forBuild;
                @javax.annotation.Nullable
                private final java.lang.Boolean $forTest = _forTest;
                @javax.annotation.Nullable
                private final java.lang.String $version = _version;

                @Override
                public java.lang.String getProviderName() {
                    return this.$providerName;
                }

                @Override
                public java.lang.String getServerUrl() {
                    return this.$serverUrl;
                }

                @Override
                public java.lang.Boolean getForBuild() {
                    return this.$forBuild;
                }

                @Override
                public java.lang.Boolean getForTest() {
                    return this.$forTest;
                }

                @Override
                public java.lang.String getVersion() {
                    return this.$version;
                }

                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("providerName", om.valueToTree(this.getProviderName()));
                    obj.set("serverUrl", om.valueToTree(this.getServerUrl()));
                    obj.set("forBuild", om.valueToTree(this.getForBuild()));
                    obj.set("forTest", om.valueToTree(this.getForTest()));
                    obj.set("version", om.valueToTree(this.getVersion()));
                    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.JenkinsProviderProps {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        /**
         * The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project.
         * 
         * Example:
         * 
         * 'MyJenkinsProvider'
         */
        @Override
        public java.lang.String getProviderName() {
            return this.jsiiGet("providerName", java.lang.String.class);
        }

        /**
         * The base URL of your Jenkins server.
         * 
         * Example:
         * 
         * 'http://myjenkins.com:8080'
         */
        @Override
        public java.lang.String getServerUrl() {
            return this.jsiiGet("serverUrl", java.lang.String.class);
        }

        /**
         * Whether to immediately register a Jenkins Provider for the build category. The Provider will always be registered if you create a {@link JenkinsAction}.
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.Boolean getForBuild() {
            return this.jsiiGet("forBuild", java.lang.Boolean.class);
        }

        /**
         * Whether to immediately register a Jenkins Provider for the test category. The Provider will always be registered if you create a {@link JenkinsTestAction}.
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.Boolean getForTest() {
            return this.jsiiGet("forTest", java.lang.Boolean.class);
        }

        /**
         * The version of your provider.
         * 
         * Default: '1'
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.String getVersion() {
            return this.jsiiGet("version", java.lang.String.class);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy