Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
software.amazon.awssdk.services.amplify.model.UpdateBranchRequest Maven / Gradle / Ivy
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.amplify.model;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* Request structure for update branch request.
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class UpdateBranchRequest extends AmplifyRequest implements
ToCopyableBuilder {
private static final SdkField APP_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::appId)).setter(setter(Builder::appId))
.traits(LocationTrait.builder().location(MarshallLocation.PATH).locationName("appId").build()).build();
private static final SdkField BRANCH_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::branchName)).setter(setter(Builder::branchName))
.traits(LocationTrait.builder().location(MarshallLocation.PATH).locationName("branchName").build()).build();
private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::description)).setter(setter(Builder::description))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("description").build()).build();
private static final SdkField FRAMEWORK_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::framework)).setter(setter(Builder::framework))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("framework").build()).build();
private static final SdkField STAGE_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::stageAsString)).setter(setter(Builder::stage))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("stage").build()).build();
private static final SdkField ENABLE_NOTIFICATION_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.getter(getter(UpdateBranchRequest::enableNotification)).setter(setter(Builder::enableNotification))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("enableNotification").build())
.build();
private static final SdkField ENABLE_AUTO_BUILD_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.getter(getter(UpdateBranchRequest::enableAutoBuild)).setter(setter(Builder::enableAutoBuild))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("enableAutoBuild").build()).build();
private static final SdkField> ENVIRONMENT_VARIABLES_FIELD = SdkField
.> builder(MarshallingType.MAP)
.getter(getter(UpdateBranchRequest::environmentVariables))
.setter(setter(Builder::environmentVariables))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("environmentVariables").build(),
MapTrait.builder()
.keyLocationName("key")
.valueLocationName("value")
.valueFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("value").build()).build()).build()).build();
private static final SdkField BASIC_AUTH_CREDENTIALS_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::basicAuthCredentials)).setter(setter(Builder::basicAuthCredentials))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("basicAuthCredentials").build())
.build();
private static final SdkField ENABLE_BASIC_AUTH_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.getter(getter(UpdateBranchRequest::enableBasicAuth)).setter(setter(Builder::enableBasicAuth))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("enableBasicAuth").build()).build();
private static final SdkField BUILD_SPEC_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::buildSpec)).setter(setter(Builder::buildSpec))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("buildSpec").build()).build();
private static final SdkField TTL_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::ttl)).setter(setter(Builder::ttl))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ttl").build()).build();
private static final SdkField DISPLAY_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::displayName)).setter(setter(Builder::displayName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("displayName").build()).build();
private static final SdkField ENABLE_PULL_REQUEST_PREVIEW_FIELD = SdkField
. builder(MarshallingType.BOOLEAN).getter(getter(UpdateBranchRequest::enablePullRequestPreview))
.setter(setter(Builder::enablePullRequestPreview))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("enablePullRequestPreview").build())
.build();
private static final SdkField PULL_REQUEST_ENVIRONMENT_NAME_FIELD = SdkField
. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::pullRequestEnvironmentName))
.setter(setter(Builder::pullRequestEnvironmentName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("pullRequestEnvironmentName").build())
.build();
private static final SdkField BACKEND_ENVIRONMENT_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.getter(getter(UpdateBranchRequest::backendEnvironmentArn)).setter(setter(Builder::backendEnvironmentArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("backendEnvironmentArn").build())
.build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(APP_ID_FIELD,
BRANCH_NAME_FIELD, DESCRIPTION_FIELD, FRAMEWORK_FIELD, STAGE_FIELD, ENABLE_NOTIFICATION_FIELD,
ENABLE_AUTO_BUILD_FIELD, ENVIRONMENT_VARIABLES_FIELD, BASIC_AUTH_CREDENTIALS_FIELD, ENABLE_BASIC_AUTH_FIELD,
BUILD_SPEC_FIELD, TTL_FIELD, DISPLAY_NAME_FIELD, ENABLE_PULL_REQUEST_PREVIEW_FIELD,
PULL_REQUEST_ENVIRONMENT_NAME_FIELD, BACKEND_ENVIRONMENT_ARN_FIELD));
private final String appId;
private final String branchName;
private final String description;
private final String framework;
private final String stage;
private final Boolean enableNotification;
private final Boolean enableAutoBuild;
private final Map environmentVariables;
private final String basicAuthCredentials;
private final Boolean enableBasicAuth;
private final String buildSpec;
private final String ttl;
private final String displayName;
private final Boolean enablePullRequestPreview;
private final String pullRequestEnvironmentName;
private final String backendEnvironmentArn;
private UpdateBranchRequest(BuilderImpl builder) {
super(builder);
this.appId = builder.appId;
this.branchName = builder.branchName;
this.description = builder.description;
this.framework = builder.framework;
this.stage = builder.stage;
this.enableNotification = builder.enableNotification;
this.enableAutoBuild = builder.enableAutoBuild;
this.environmentVariables = builder.environmentVariables;
this.basicAuthCredentials = builder.basicAuthCredentials;
this.enableBasicAuth = builder.enableBasicAuth;
this.buildSpec = builder.buildSpec;
this.ttl = builder.ttl;
this.displayName = builder.displayName;
this.enablePullRequestPreview = builder.enablePullRequestPreview;
this.pullRequestEnvironmentName = builder.pullRequestEnvironmentName;
this.backendEnvironmentArn = builder.backendEnvironmentArn;
}
/**
*
* Unique Id for an Amplify App.
*
*
* @return Unique Id for an Amplify App.
*/
public String appId() {
return appId;
}
/**
*
* Name for the branch.
*
*
* @return Name for the branch.
*/
public String branchName() {
return branchName;
}
/**
*
* Description for the branch.
*
*
* @return Description for the branch.
*/
public String description() {
return description;
}
/**
*
* Framework for the branch.
*
*
* @return Framework for the branch.
*/
public String framework() {
return framework;
}
/**
*
* Stage for the branch.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #stage} will return
* {@link Stage#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #stageAsString}.
*
*
* @return Stage for the branch.
* @see Stage
*/
public Stage stage() {
return Stage.fromValue(stage);
}
/**
*
* Stage for the branch.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #stage} will return
* {@link Stage#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #stageAsString}.
*
*
* @return Stage for the branch.
* @see Stage
*/
public String stageAsString() {
return stage;
}
/**
*
* Enables notifications for the branch.
*
*
* @return Enables notifications for the branch.
*/
public Boolean enableNotification() {
return enableNotification;
}
/**
*
* Enables auto building for the branch.
*
*
* @return Enables auto building for the branch.
*/
public Boolean enableAutoBuild() {
return enableAutoBuild;
}
/**
* Returns true if the EnvironmentVariables property was specified by the sender (it may be empty), or false if the
* sender did not specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS
* service.
*/
public boolean hasEnvironmentVariables() {
return environmentVariables != null && !(environmentVariables instanceof SdkAutoConstructMap);
}
/**
*
* Environment Variables for the branch.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* You can use {@link #hasEnvironmentVariables()} to see if a value was sent in this field.
*
*
* @return Environment Variables for the branch.
*/
public Map environmentVariables() {
return environmentVariables;
}
/**
*
* Basic Authorization credentials for the branch.
*
*
* @return Basic Authorization credentials for the branch.
*/
public String basicAuthCredentials() {
return basicAuthCredentials;
}
/**
*
* Enables Basic Auth for the branch.
*
*
* @return Enables Basic Auth for the branch.
*/
public Boolean enableBasicAuth() {
return enableBasicAuth;
}
/**
*
* BuildSpec for the branch.
*
*
* @return BuildSpec for the branch.
*/
public String buildSpec() {
return buildSpec;
}
/**
*
* The content TTL for the website in seconds.
*
*
* @return The content TTL for the website in seconds.
*/
public String ttl() {
return ttl;
}
/**
*
* Display name for a branch, will use as the default domain prefix.
*
*
* @return Display name for a branch, will use as the default domain prefix.
*/
public String displayName() {
return displayName;
}
/**
*
* Enables Pull Request Preview for this branch.
*
*
* @return Enables Pull Request Preview for this branch.
*/
public Boolean enablePullRequestPreview() {
return enablePullRequestPreview;
}
/**
*
* The Amplify Environment name for the pull request.
*
*
* @return The Amplify Environment name for the pull request.
*/
public String pullRequestEnvironmentName() {
return pullRequestEnvironmentName;
}
/**
*
* ARN for a Backend Environment, part of an Amplify App.
*
*
* @return ARN for a Backend Environment, part of an Amplify App.
*/
public String backendEnvironmentArn() {
return backendEnvironmentArn;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(appId());
hashCode = 31 * hashCode + Objects.hashCode(branchName());
hashCode = 31 * hashCode + Objects.hashCode(description());
hashCode = 31 * hashCode + Objects.hashCode(framework());
hashCode = 31 * hashCode + Objects.hashCode(stageAsString());
hashCode = 31 * hashCode + Objects.hashCode(enableNotification());
hashCode = 31 * hashCode + Objects.hashCode(enableAutoBuild());
hashCode = 31 * hashCode + Objects.hashCode(environmentVariables());
hashCode = 31 * hashCode + Objects.hashCode(basicAuthCredentials());
hashCode = 31 * hashCode + Objects.hashCode(enableBasicAuth());
hashCode = 31 * hashCode + Objects.hashCode(buildSpec());
hashCode = 31 * hashCode + Objects.hashCode(ttl());
hashCode = 31 * hashCode + Objects.hashCode(displayName());
hashCode = 31 * hashCode + Objects.hashCode(enablePullRequestPreview());
hashCode = 31 * hashCode + Objects.hashCode(pullRequestEnvironmentName());
hashCode = 31 * hashCode + Objects.hashCode(backendEnvironmentArn());
return hashCode;
}
@Override
public boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof UpdateBranchRequest)) {
return false;
}
UpdateBranchRequest other = (UpdateBranchRequest) obj;
return Objects.equals(appId(), other.appId()) && Objects.equals(branchName(), other.branchName())
&& Objects.equals(description(), other.description()) && Objects.equals(framework(), other.framework())
&& Objects.equals(stageAsString(), other.stageAsString())
&& Objects.equals(enableNotification(), other.enableNotification())
&& Objects.equals(enableAutoBuild(), other.enableAutoBuild())
&& Objects.equals(environmentVariables(), other.environmentVariables())
&& Objects.equals(basicAuthCredentials(), other.basicAuthCredentials())
&& Objects.equals(enableBasicAuth(), other.enableBasicAuth()) && Objects.equals(buildSpec(), other.buildSpec())
&& Objects.equals(ttl(), other.ttl()) && Objects.equals(displayName(), other.displayName())
&& Objects.equals(enablePullRequestPreview(), other.enablePullRequestPreview())
&& Objects.equals(pullRequestEnvironmentName(), other.pullRequestEnvironmentName())
&& Objects.equals(backendEnvironmentArn(), other.backendEnvironmentArn());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public String toString() {
return ToString.builder("UpdateBranchRequest").add("AppId", appId()).add("BranchName", branchName())
.add("Description", description()).add("Framework", framework()).add("Stage", stageAsString())
.add("EnableNotification", enableNotification()).add("EnableAutoBuild", enableAutoBuild())
.add("EnvironmentVariables", environmentVariables()).add("BasicAuthCredentials", basicAuthCredentials())
.add("EnableBasicAuth", enableBasicAuth()).add("BuildSpec", buildSpec()).add("Ttl", ttl())
.add("DisplayName", displayName()).add("EnablePullRequestPreview", enablePullRequestPreview())
.add("PullRequestEnvironmentName", pullRequestEnvironmentName())
.add("BackendEnvironmentArn", backendEnvironmentArn()).build();
}
public Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "appId":
return Optional.ofNullable(clazz.cast(appId()));
case "branchName":
return Optional.ofNullable(clazz.cast(branchName()));
case "description":
return Optional.ofNullable(clazz.cast(description()));
case "framework":
return Optional.ofNullable(clazz.cast(framework()));
case "stage":
return Optional.ofNullable(clazz.cast(stageAsString()));
case "enableNotification":
return Optional.ofNullable(clazz.cast(enableNotification()));
case "enableAutoBuild":
return Optional.ofNullable(clazz.cast(enableAutoBuild()));
case "environmentVariables":
return Optional.ofNullable(clazz.cast(environmentVariables()));
case "basicAuthCredentials":
return Optional.ofNullable(clazz.cast(basicAuthCredentials()));
case "enableBasicAuth":
return Optional.ofNullable(clazz.cast(enableBasicAuth()));
case "buildSpec":
return Optional.ofNullable(clazz.cast(buildSpec()));
case "ttl":
return Optional.ofNullable(clazz.cast(ttl()));
case "displayName":
return Optional.ofNullable(clazz.cast(displayName()));
case "enablePullRequestPreview":
return Optional.ofNullable(clazz.cast(enablePullRequestPreview()));
case "pullRequestEnvironmentName":
return Optional.ofNullable(clazz.cast(pullRequestEnvironmentName()));
case "backendEnvironmentArn":
return Optional.ofNullable(clazz.cast(backendEnvironmentArn()));
default:
return Optional.empty();
}
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
private static Function getter(Function g) {
return obj -> g.apply((UpdateBranchRequest) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends AmplifyRequest.Builder, SdkPojo, CopyableBuilder {
/**
*
* Unique Id for an Amplify App.
*
*
* @param appId
* Unique Id for an Amplify App.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder appId(String appId);
/**
*
* Name for the branch.
*
*
* @param branchName
* Name for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder branchName(String branchName);
/**
*
* Description for the branch.
*
*
* @param description
* Description for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder description(String description);
/**
*
* Framework for the branch.
*
*
* @param framework
* Framework for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder framework(String framework);
/**
*
* Stage for the branch.
*
*
* @param stage
* Stage for the branch.
* @see Stage
* @return Returns a reference to this object so that method calls can be chained together.
* @see Stage
*/
Builder stage(String stage);
/**
*
* Stage for the branch.
*
*
* @param stage
* Stage for the branch.
* @see Stage
* @return Returns a reference to this object so that method calls can be chained together.
* @see Stage
*/
Builder stage(Stage stage);
/**
*
* Enables notifications for the branch.
*
*
* @param enableNotification
* Enables notifications for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableNotification(Boolean enableNotification);
/**
*
* Enables auto building for the branch.
*
*
* @param enableAutoBuild
* Enables auto building for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableAutoBuild(Boolean enableAutoBuild);
/**
*
* Environment Variables for the branch.
*
*
* @param environmentVariables
* Environment Variables for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder environmentVariables(Map environmentVariables);
/**
*
* Basic Authorization credentials for the branch.
*
*
* @param basicAuthCredentials
* Basic Authorization credentials for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder basicAuthCredentials(String basicAuthCredentials);
/**
*
* Enables Basic Auth for the branch.
*
*
* @param enableBasicAuth
* Enables Basic Auth for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableBasicAuth(Boolean enableBasicAuth);
/**
*
* BuildSpec for the branch.
*
*
* @param buildSpec
* BuildSpec for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder buildSpec(String buildSpec);
/**
*
* The content TTL for the website in seconds.
*
*
* @param ttl
* The content TTL for the website in seconds.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder ttl(String ttl);
/**
*
* Display name for a branch, will use as the default domain prefix.
*
*
* @param displayName
* Display name for a branch, will use as the default domain prefix.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder displayName(String displayName);
/**
*
* Enables Pull Request Preview for this branch.
*
*
* @param enablePullRequestPreview
* Enables Pull Request Preview for this branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enablePullRequestPreview(Boolean enablePullRequestPreview);
/**
*
* The Amplify Environment name for the pull request.
*
*
* @param pullRequestEnvironmentName
* The Amplify Environment name for the pull request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder pullRequestEnvironmentName(String pullRequestEnvironmentName);
/**
*
* ARN for a Backend Environment, part of an Amplify App.
*
*
* @param backendEnvironmentArn
* ARN for a Backend Environment, part of an Amplify App.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder backendEnvironmentArn(String backendEnvironmentArn);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends AmplifyRequest.BuilderImpl implements Builder {
private String appId;
private String branchName;
private String description;
private String framework;
private String stage;
private Boolean enableNotification;
private Boolean enableAutoBuild;
private Map environmentVariables = DefaultSdkAutoConstructMap.getInstance();
private String basicAuthCredentials;
private Boolean enableBasicAuth;
private String buildSpec;
private String ttl;
private String displayName;
private Boolean enablePullRequestPreview;
private String pullRequestEnvironmentName;
private String backendEnvironmentArn;
private BuilderImpl() {
}
private BuilderImpl(UpdateBranchRequest model) {
super(model);
appId(model.appId);
branchName(model.branchName);
description(model.description);
framework(model.framework);
stage(model.stage);
enableNotification(model.enableNotification);
enableAutoBuild(model.enableAutoBuild);
environmentVariables(model.environmentVariables);
basicAuthCredentials(model.basicAuthCredentials);
enableBasicAuth(model.enableBasicAuth);
buildSpec(model.buildSpec);
ttl(model.ttl);
displayName(model.displayName);
enablePullRequestPreview(model.enablePullRequestPreview);
pullRequestEnvironmentName(model.pullRequestEnvironmentName);
backendEnvironmentArn(model.backendEnvironmentArn);
}
public final String getAppId() {
return appId;
}
@Override
public final Builder appId(String appId) {
this.appId = appId;
return this;
}
public final void setAppId(String appId) {
this.appId = appId;
}
public final String getBranchName() {
return branchName;
}
@Override
public final Builder branchName(String branchName) {
this.branchName = branchName;
return this;
}
public final void setBranchName(String branchName) {
this.branchName = branchName;
}
public final String getDescription() {
return description;
}
@Override
public final Builder description(String description) {
this.description = description;
return this;
}
public final void setDescription(String description) {
this.description = description;
}
public final String getFramework() {
return framework;
}
@Override
public final Builder framework(String framework) {
this.framework = framework;
return this;
}
public final void setFramework(String framework) {
this.framework = framework;
}
public final String getStage() {
return stage;
}
@Override
public final Builder stage(String stage) {
this.stage = stage;
return this;
}
@Override
public final Builder stage(Stage stage) {
this.stage(stage == null ? null : stage.toString());
return this;
}
public final void setStage(String stage) {
this.stage = stage;
}
public final Boolean getEnableNotification() {
return enableNotification;
}
@Override
public final Builder enableNotification(Boolean enableNotification) {
this.enableNotification = enableNotification;
return this;
}
public final void setEnableNotification(Boolean enableNotification) {
this.enableNotification = enableNotification;
}
public final Boolean getEnableAutoBuild() {
return enableAutoBuild;
}
@Override
public final Builder enableAutoBuild(Boolean enableAutoBuild) {
this.enableAutoBuild = enableAutoBuild;
return this;
}
public final void setEnableAutoBuild(Boolean enableAutoBuild) {
this.enableAutoBuild = enableAutoBuild;
}
public final Map getEnvironmentVariables() {
return environmentVariables;
}
@Override
public final Builder environmentVariables(Map environmentVariables) {
this.environmentVariables = EnvironmentVariablesCopier.copy(environmentVariables);
return this;
}
public final void setEnvironmentVariables(Map environmentVariables) {
this.environmentVariables = EnvironmentVariablesCopier.copy(environmentVariables);
}
public final String getBasicAuthCredentials() {
return basicAuthCredentials;
}
@Override
public final Builder basicAuthCredentials(String basicAuthCredentials) {
this.basicAuthCredentials = basicAuthCredentials;
return this;
}
public final void setBasicAuthCredentials(String basicAuthCredentials) {
this.basicAuthCredentials = basicAuthCredentials;
}
public final Boolean getEnableBasicAuth() {
return enableBasicAuth;
}
@Override
public final Builder enableBasicAuth(Boolean enableBasicAuth) {
this.enableBasicAuth = enableBasicAuth;
return this;
}
public final void setEnableBasicAuth(Boolean enableBasicAuth) {
this.enableBasicAuth = enableBasicAuth;
}
public final String getBuildSpec() {
return buildSpec;
}
@Override
public final Builder buildSpec(String buildSpec) {
this.buildSpec = buildSpec;
return this;
}
public final void setBuildSpec(String buildSpec) {
this.buildSpec = buildSpec;
}
public final String getTtl() {
return ttl;
}
@Override
public final Builder ttl(String ttl) {
this.ttl = ttl;
return this;
}
public final void setTtl(String ttl) {
this.ttl = ttl;
}
public final String getDisplayName() {
return displayName;
}
@Override
public final Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
public final void setDisplayName(String displayName) {
this.displayName = displayName;
}
public final Boolean getEnablePullRequestPreview() {
return enablePullRequestPreview;
}
@Override
public final Builder enablePullRequestPreview(Boolean enablePullRequestPreview) {
this.enablePullRequestPreview = enablePullRequestPreview;
return this;
}
public final void setEnablePullRequestPreview(Boolean enablePullRequestPreview) {
this.enablePullRequestPreview = enablePullRequestPreview;
}
public final String getPullRequestEnvironmentName() {
return pullRequestEnvironmentName;
}
@Override
public final Builder pullRequestEnvironmentName(String pullRequestEnvironmentName) {
this.pullRequestEnvironmentName = pullRequestEnvironmentName;
return this;
}
public final void setPullRequestEnvironmentName(String pullRequestEnvironmentName) {
this.pullRequestEnvironmentName = pullRequestEnvironmentName;
}
public final String getBackendEnvironmentArn() {
return backendEnvironmentArn;
}
@Override
public final Builder backendEnvironmentArn(String backendEnvironmentArn) {
this.backendEnvironmentArn = backendEnvironmentArn;
return this;
}
public final void setBackendEnvironmentArn(String backendEnvironmentArn) {
this.backendEnvironmentArn = backendEnvironmentArn;
}
@Override
public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
super.overrideConfiguration(overrideConfiguration);
return this;
}
@Override
public Builder overrideConfiguration(Consumer builderConsumer) {
super.overrideConfiguration(builderConsumer);
return this;
}
@Override
public UpdateBranchRequest build() {
return new UpdateBranchRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}