
software.amazon.awscdk.services.codepipeline.actions.JenkinsProviderImportProps Maven / Gradle / Ivy
package software.amazon.awscdk.services.codepipeline.actions;
/**
* Properties for importing an existing Jenkins provider.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.10.3 (build 6bbf743)", date = "2019-05-02T10:15:47.477Z")
public interface JenkinsProviderImportProps 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();
/**
* The version of your provider.
*
* Default: '1'
*/
java.lang.String getVersion();
/**
* @return a {@link Builder} of {@link JenkinsProviderImportProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link JenkinsProviderImportProps}
*/
final class Builder {
private java.lang.String _providerName;
private java.lang.String _serverUrl;
@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 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 JenkinsProviderImportProps}
* @throws NullPointerException if any required attribute was not provided
*/
public JenkinsProviderImportProps build() {
return new JenkinsProviderImportProps() {
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.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.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("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.JenkinsProviderImportProps {
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);
}
/**
* 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