* 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 Describes the current stage for the branch.
* @see Stage
*/
public final Stage stage() {
return Stage.fromValue(stage);
}
/**
*
* 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 Describes the current stage for the branch.
* @see Stage
*/
public final String stageAsString() {
return stage;
}
/**
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasEnvironmentVariables} method.
*
*
* @return The environment variables for the branch.
*/
public final Map environmentVariables() {
return environmentVariables;
}
/**
*
* The basic authorization credentials for the branch. You must base64-encode the authorization credentials and
* provide them in the format user:password
.
*
*
* @return The basic authorization credentials for the branch. You must base64-encode the authorization credentials
* and provide them in the format user:password
.
*/
public final String basicAuthCredentials() {
return basicAuthCredentials;
}
/**
*
* Enables basic authorization for the branch.
*
*
* @return Enables basic authorization for the branch.
*/
public final Boolean enableBasicAuth() {
return enableBasicAuth;
}
/**
*
* Enables performance mode for the branch.
*
*
* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer
* interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to
* roll out.
*
*
* @return Enables performance mode for the branch.
*
* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a
* longer interval. When performance mode is enabled, hosting configuration or code changes can take up to
* 10 minutes to roll out.
*/
public final Boolean enablePerformanceMode() {
return enablePerformanceMode;
}
/**
*
* The build specification (build spec) for the branch.
*
*
* @return The build specification (build spec) for the branch.
*/
public final String buildSpec() {
return buildSpec;
}
/**
*
* The content Time to Live (TTL) for the website in seconds.
*
*
* @return The content Time to Live (TTL) for the website in seconds.
*/
public final String ttl() {
return ttl;
}
/**
*
* The display name for a branch. This is used as the default domain prefix.
*
*
* @return The display name for a branch. This is used as the default domain prefix.
*/
public final String displayName() {
return displayName;
}
/**
*
* Enables pull request previews for this branch.
*
*
* @return Enables pull request previews for this branch.
*/
public final Boolean enablePullRequestPreview() {
return enablePullRequestPreview;
}
/**
*
* The Amplify environment name for the pull request.
*
*
* @return The Amplify environment name for the pull request.
*/
public final String pullRequestEnvironmentName() {
return pullRequestEnvironmentName;
}
/**
*
* The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.
*
*
* This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the
* Amplify command line interface (CLI).
*
*
* @return The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.
*
* This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or
* the Amplify command line interface (CLI).
*/
public final String backendEnvironmentArn() {
return backendEnvironmentArn;
}
/**
*
* The backend for a Branch
of an Amplify app. Use for a backend created from an CloudFormation stack.
*
*
* This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you
* provision the app's backend infrastructure using Typescript code.
*
*
* @return The backend for a Branch
of an Amplify app. Use for a backend created from an CloudFormation
* stack.
*
* This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2,
* you provision the app's backend infrastructure using Typescript code.
*/
public final Backend backend() {
return backend;
}
@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 final 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(hasEnvironmentVariables() ? environmentVariables() : null);
hashCode = 31 * hashCode + Objects.hashCode(basicAuthCredentials());
hashCode = 31 * hashCode + Objects.hashCode(enableBasicAuth());
hashCode = 31 * hashCode + Objects.hashCode(enablePerformanceMode());
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());
hashCode = 31 * hashCode + Objects.hashCode(backend());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final 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())
&& hasEnvironmentVariables() == other.hasEnvironmentVariables()
&& Objects.equals(environmentVariables(), other.environmentVariables())
&& Objects.equals(basicAuthCredentials(), other.basicAuthCredentials())
&& Objects.equals(enableBasicAuth(), other.enableBasicAuth())
&& Objects.equals(enablePerformanceMode(), other.enablePerformanceMode())
&& 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())
&& Objects.equals(backend(), other.backend());
}
/**
* 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 final 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", hasEnvironmentVariables() ? environmentVariables() : null)
.add("BasicAuthCredentials", basicAuthCredentials() == null ? null : "*** Sensitive Data Redacted ***")
.add("EnableBasicAuth", enableBasicAuth()).add("EnablePerformanceMode", enablePerformanceMode())
.add("BuildSpec", buildSpec() == null ? null : "*** Sensitive Data Redacted ***").add("Ttl", ttl())
.add("DisplayName", displayName()).add("EnablePullRequestPreview", enablePullRequestPreview())
.add("PullRequestEnvironmentName", pullRequestEnvironmentName())
.add("BackendEnvironmentArn", backendEnvironmentArn()).add("Backend", backend()).build();
}
public final 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 "enablePerformanceMode":
return Optional.ofNullable(clazz.cast(enablePerformanceMode()));
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()));
case "backend":
return Optional.ofNullable(clazz.cast(backend()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
@Override
public final Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
private static Map> memberNameToFieldInitializer() {
Map> map = new HashMap<>();
map.put("appId", APP_ID_FIELD);
map.put("branchName", BRANCH_NAME_FIELD);
map.put("description", DESCRIPTION_FIELD);
map.put("framework", FRAMEWORK_FIELD);
map.put("stage", STAGE_FIELD);
map.put("enableNotification", ENABLE_NOTIFICATION_FIELD);
map.put("enableAutoBuild", ENABLE_AUTO_BUILD_FIELD);
map.put("environmentVariables", ENVIRONMENT_VARIABLES_FIELD);
map.put("basicAuthCredentials", BASIC_AUTH_CREDENTIALS_FIELD);
map.put("enableBasicAuth", ENABLE_BASIC_AUTH_FIELD);
map.put("enablePerformanceMode", ENABLE_PERFORMANCE_MODE_FIELD);
map.put("buildSpec", BUILD_SPEC_FIELD);
map.put("ttl", TTL_FIELD);
map.put("displayName", DISPLAY_NAME_FIELD);
map.put("enablePullRequestPreview", ENABLE_PULL_REQUEST_PREVIEW_FIELD);
map.put("pullRequestEnvironmentName", PULL_REQUEST_ENVIRONMENT_NAME_FIELD);
map.put("backendEnvironmentArn", BACKEND_ENVIRONMENT_ARN_FIELD);
map.put("backend", BACKEND_FIELD);
return Collections.unmodifiableMap(map);
}
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 {
/**
*
* The unique ID for an Amplify app.
*
*
* @param appId
* The 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);
/**
*
* The name of the branch.
*
*
* @param branchName
* The name of the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder branchName(String branchName);
/**
*
* The description for the branch.
*
*
* @param description
* The description for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder description(String description);
/**
*
* The framework for the branch.
*
*
* @param framework
* The framework for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder framework(String framework);
/**
*
* Describes the current stage for the branch.
*
*
* @param stage
* Describes the current 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);
/**
*
* Describes the current stage for the branch.
*
*
* @param stage
* Describes the current 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);
/**
*
* The environment variables for the branch.
*
*
* @param environmentVariables
* The environment variables for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder environmentVariables(Map environmentVariables);
/**
*
* The basic authorization credentials for the branch. You must base64-encode the authorization credentials and
* provide them in the format user:password
.
*
*
* @param basicAuthCredentials
* The basic authorization credentials for the branch. You must base64-encode the authorization
* credentials and provide them in the format user:password
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder basicAuthCredentials(String basicAuthCredentials);
/**
*
* Enables basic authorization for the branch.
*
*
* @param enableBasicAuth
* Enables basic authorization for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enableBasicAuth(Boolean enableBasicAuth);
/**
*
* Enables performance mode for the branch.
*
*
* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer
* interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes
* to roll out.
*
*
* @param enablePerformanceMode
* Enables performance mode for the branch.
*
* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a
* longer interval. When performance mode is enabled, hosting configuration or code changes can take up
* to 10 minutes to roll out.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder enablePerformanceMode(Boolean enablePerformanceMode);
/**
*
* The build specification (build spec) for the branch.
*
*
* @param buildSpec
* The build specification (build spec) for the branch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder buildSpec(String buildSpec);
/**
*
* The content Time to Live (TTL) for the website in seconds.
*
*
* @param ttl
* The content Time to Live (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);
/**
*
* The display name for a branch. This is used as the default domain prefix.
*
*
* @param displayName
* The display name for a branch. This is used 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 previews for this branch.
*
*
* @param enablePullRequestPreview
* Enables pull request previews 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);
/**
*
* The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.
*
*
* This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the
* Amplify command line interface (CLI).
*
*
* @param backendEnvironmentArn
* The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.
*
* This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio
* or the Amplify command line interface (CLI).
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder backendEnvironmentArn(String backendEnvironmentArn);
/**
*
* The backend for a Branch
of an Amplify app. Use for a backend created from an CloudFormation
* stack.
*
*
* This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you
* provision the app's backend infrastructure using Typescript code.
*
*
* @param backend
* The backend for a Branch
of an Amplify app. Use for a backend created from an
* CloudFormation stack.
*
* This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2,
* you provision the app's backend infrastructure using Typescript code.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder backend(Backend backend);
/**
*
* The backend for a Branch
of an Amplify app. Use for a backend created from an CloudFormation
* stack.
*
*
* This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you
* provision the app's backend infrastructure using Typescript code.
*
* This is a convenience method that creates an instance of the {@link Backend.Builder} avoiding the need to
* create one manually via {@link Backend#builder()}.
*
*
* When the {@link Consumer} completes, {@link Backend.Builder#build()} is called immediately and its result is
* passed to {@link #backend(Backend)}.
*
* @param backend
* a consumer that will call methods on {@link Backend.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #backend(Backend)
*/
default Builder backend(Consumer backend) {
return backend(Backend.builder().applyMutation(backend).build());
}
@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 Boolean enablePerformanceMode;
private String buildSpec;
private String ttl;
private String displayName;
private Boolean enablePullRequestPreview;
private String pullRequestEnvironmentName;
private String backendEnvironmentArn;
private Backend backend;
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);
enablePerformanceMode(model.enablePerformanceMode);
buildSpec(model.buildSpec);
ttl(model.ttl);
displayName(model.displayName);
enablePullRequestPreview(model.enablePullRequestPreview);
pullRequestEnvironmentName(model.pullRequestEnvironmentName);
backendEnvironmentArn(model.backendEnvironmentArn);
backend(model.backend);
}
public final String getAppId() {
return appId;
}
public final void setAppId(String appId) {
this.appId = appId;
}
@Override
public final Builder appId(String appId) {
this.appId = appId;
return this;
}
public final String getBranchName() {
return branchName;
}
public final void setBranchName(String branchName) {
this.branchName = branchName;
}
@Override
public final Builder branchName(String branchName) {
this.branchName = branchName;
return this;
}
public final String getDescription() {
return description;
}
public final void setDescription(String description) {
this.description = description;
}
@Override
public final Builder description(String description) {
this.description = description;
return this;
}
public final String getFramework() {
return framework;
}
public final void setFramework(String framework) {
this.framework = framework;
}
@Override
public final Builder framework(String framework) {
this.framework = framework;
return this;
}
public final String getStage() {
return stage;
}
public final void setStage(String stage) {
this.stage = 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 Boolean getEnableNotification() {
return enableNotification;
}
public final void setEnableNotification(Boolean enableNotification) {
this.enableNotification = enableNotification;
}
@Override
public final Builder enableNotification(Boolean enableNotification) {
this.enableNotification = enableNotification;
return this;
}
public final Boolean getEnableAutoBuild() {
return enableAutoBuild;
}
public final void setEnableAutoBuild(Boolean enableAutoBuild) {
this.enableAutoBuild = enableAutoBuild;
}
@Override
public final Builder enableAutoBuild(Boolean enableAutoBuild) {
this.enableAutoBuild = enableAutoBuild;
return this;
}
public final Map getEnvironmentVariables() {
if (environmentVariables instanceof SdkAutoConstructMap) {
return null;
}
return environmentVariables;
}
public final void setEnvironmentVariables(Map environmentVariables) {
this.environmentVariables = EnvironmentVariablesCopier.copy(environmentVariables);
}
@Override
public final Builder environmentVariables(Map environmentVariables) {
this.environmentVariables = EnvironmentVariablesCopier.copy(environmentVariables);
return this;
}
public final String getBasicAuthCredentials() {
return basicAuthCredentials;
}
public final void setBasicAuthCredentials(String basicAuthCredentials) {
this.basicAuthCredentials = basicAuthCredentials;
}
@Override
public final Builder basicAuthCredentials(String basicAuthCredentials) {
this.basicAuthCredentials = basicAuthCredentials;
return this;
}
public final Boolean getEnableBasicAuth() {
return enableBasicAuth;
}
public final void setEnableBasicAuth(Boolean enableBasicAuth) {
this.enableBasicAuth = enableBasicAuth;
}
@Override
public final Builder enableBasicAuth(Boolean enableBasicAuth) {
this.enableBasicAuth = enableBasicAuth;
return this;
}
public final Boolean getEnablePerformanceMode() {
return enablePerformanceMode;
}
public final void setEnablePerformanceMode(Boolean enablePerformanceMode) {
this.enablePerformanceMode = enablePerformanceMode;
}
@Override
public final Builder enablePerformanceMode(Boolean enablePerformanceMode) {
this.enablePerformanceMode = enablePerformanceMode;
return this;
}
public final String getBuildSpec() {
return buildSpec;
}
public final void setBuildSpec(String buildSpec) {
this.buildSpec = buildSpec;
}
@Override
public final Builder buildSpec(String buildSpec) {
this.buildSpec = buildSpec;
return this;
}
public final String getTtl() {
return ttl;
}
public final void setTtl(String ttl) {
this.ttl = ttl;
}
@Override
public final Builder ttl(String ttl) {
this.ttl = ttl;
return this;
}
public final String getDisplayName() {
return displayName;
}
public final void setDisplayName(String displayName) {
this.displayName = displayName;
}
@Override
public final Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
public final Boolean getEnablePullRequestPreview() {
return enablePullRequestPreview;
}
public final void setEnablePullRequestPreview(Boolean enablePullRequestPreview) {
this.enablePullRequestPreview = enablePullRequestPreview;
}
@Override
public final Builder enablePullRequestPreview(Boolean enablePullRequestPreview) {
this.enablePullRequestPreview = enablePullRequestPreview;
return this;
}
public final String getPullRequestEnvironmentName() {
return pullRequestEnvironmentName;
}
public final void setPullRequestEnvironmentName(String pullRequestEnvironmentName) {
this.pullRequestEnvironmentName = pullRequestEnvironmentName;
}
@Override
public final Builder pullRequestEnvironmentName(String pullRequestEnvironmentName) {
this.pullRequestEnvironmentName = pullRequestEnvironmentName;
return this;
}
public final String getBackendEnvironmentArn() {
return backendEnvironmentArn;
}
public final void setBackendEnvironmentArn(String backendEnvironmentArn) {
this.backendEnvironmentArn = backendEnvironmentArn;
}
@Override
public final Builder backendEnvironmentArn(String backendEnvironmentArn) {
this.backendEnvironmentArn = backendEnvironmentArn;
return this;
}
public final Backend.Builder getBackend() {
return backend != null ? backend.toBuilder() : null;
}
public final void setBackend(Backend.BuilderImpl backend) {
this.backend = backend != null ? backend.build() : null;
}
@Override
public final Builder backend(Backend backend) {
this.backend = backend;
return this;
}
@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;
}
@Override
public Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
}
}