com.amazonaws.services.amplify.model.CreateBackendEnvironmentRequest Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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 com.amazonaws.services.amplify.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* The request structure for the backend environment create request.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateBackendEnvironmentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The unique ID for an Amplify app.
*
*/
private String appId;
/**
*
* The name for the backend environment.
*
*/
private String environmentName;
/**
*
* The AWS CloudFormation stack name of a backend environment.
*
*/
private String stackName;
/**
*
* The name of deployment artifacts.
*
*/
private String deploymentArtifacts;
/**
*
* The unique ID for an Amplify app.
*
*
* @param appId
* The unique ID for an Amplify app.
*/
public void setAppId(String appId) {
this.appId = appId;
}
/**
*
* The unique ID for an Amplify app.
*
*
* @return The unique ID for an Amplify app.
*/
public String getAppId() {
return this.appId;
}
/**
*
* 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.
*/
public CreateBackendEnvironmentRequest withAppId(String appId) {
setAppId(appId);
return this;
}
/**
*
* The name for the backend environment.
*
*
* @param environmentName
* The name for the backend environment.
*/
public void setEnvironmentName(String environmentName) {
this.environmentName = environmentName;
}
/**
*
* The name for the backend environment.
*
*
* @return The name for the backend environment.
*/
public String getEnvironmentName() {
return this.environmentName;
}
/**
*
* The name for the backend environment.
*
*
* @param environmentName
* The name for the backend environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBackendEnvironmentRequest withEnvironmentName(String environmentName) {
setEnvironmentName(environmentName);
return this;
}
/**
*
* The AWS CloudFormation stack name of a backend environment.
*
*
* @param stackName
* The AWS CloudFormation stack name of a backend environment.
*/
public void setStackName(String stackName) {
this.stackName = stackName;
}
/**
*
* The AWS CloudFormation stack name of a backend environment.
*
*
* @return The AWS CloudFormation stack name of a backend environment.
*/
public String getStackName() {
return this.stackName;
}
/**
*
* The AWS CloudFormation stack name of a backend environment.
*
*
* @param stackName
* The AWS CloudFormation stack name of a backend environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBackendEnvironmentRequest withStackName(String stackName) {
setStackName(stackName);
return this;
}
/**
*
* The name of deployment artifacts.
*
*
* @param deploymentArtifacts
* The name of deployment artifacts.
*/
public void setDeploymentArtifacts(String deploymentArtifacts) {
this.deploymentArtifacts = deploymentArtifacts;
}
/**
*
* The name of deployment artifacts.
*
*
* @return The name of deployment artifacts.
*/
public String getDeploymentArtifacts() {
return this.deploymentArtifacts;
}
/**
*
* The name of deployment artifacts.
*
*
* @param deploymentArtifacts
* The name of deployment artifacts.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBackendEnvironmentRequest withDeploymentArtifacts(String deploymentArtifacts) {
setDeploymentArtifacts(deploymentArtifacts);
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAppId() != null)
sb.append("AppId: ").append(getAppId()).append(",");
if (getEnvironmentName() != null)
sb.append("EnvironmentName: ").append(getEnvironmentName()).append(",");
if (getStackName() != null)
sb.append("StackName: ").append(getStackName()).append(",");
if (getDeploymentArtifacts() != null)
sb.append("DeploymentArtifacts: ").append(getDeploymentArtifacts());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateBackendEnvironmentRequest == false)
return false;
CreateBackendEnvironmentRequest other = (CreateBackendEnvironmentRequest) obj;
if (other.getAppId() == null ^ this.getAppId() == null)
return false;
if (other.getAppId() != null && other.getAppId().equals(this.getAppId()) == false)
return false;
if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == null)
return false;
if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == false)
return false;
if (other.getStackName() == null ^ this.getStackName() == null)
return false;
if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == false)
return false;
if (other.getDeploymentArtifacts() == null ^ this.getDeploymentArtifacts() == null)
return false;
if (other.getDeploymentArtifacts() != null && other.getDeploymentArtifacts().equals(this.getDeploymentArtifacts()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode());
hashCode = prime * hashCode + ((getEnvironmentName() == null) ? 0 : getEnvironmentName().hashCode());
hashCode = prime * hashCode + ((getStackName() == null) ? 0 : getStackName().hashCode());
hashCode = prime * hashCode + ((getDeploymentArtifacts() == null) ? 0 : getDeploymentArtifacts().hashCode());
return hashCode;
}
@Override
public CreateBackendEnvironmentRequest clone() {
return (CreateBackendEnvironmentRequest) super.clone();
}
}