com.amazonaws.services.datazone.model.CreateEnvironmentRequest 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.datazone.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateEnvironmentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The description of the Amazon DataZone environment.
*
*/
private String description;
/**
*
* The identifier of the Amazon DataZone domain in which the environment is created.
*
*/
private String domainIdentifier;
/**
*
* The identifier of the environment profile that is used to create this Amazon DataZone environment.
*
*/
private String environmentProfileIdentifier;
/**
*
* The glossary terms that can be used in this Amazon DataZone environment.
*
*/
private java.util.List glossaryTerms;
/**
*
* The name of the Amazon DataZone environment.
*
*/
private String name;
/**
*
* The identifier of the Amazon DataZone project in which this environment is created.
*
*/
private String projectIdentifier;
/**
*
* The user parameters of this Amazon DataZone environment.
*
*/
private java.util.List userParameters;
/**
*
* The description of the Amazon DataZone environment.
*
*
* @param description
* The description of the Amazon DataZone environment.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the Amazon DataZone environment.
*
*
* @return The description of the Amazon DataZone environment.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the Amazon DataZone environment.
*
*
* @param description
* The description of the Amazon DataZone environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The identifier of the Amazon DataZone domain in which the environment is created.
*
*
* @param domainIdentifier
* The identifier of the Amazon DataZone domain in which the environment is created.
*/
public void setDomainIdentifier(String domainIdentifier) {
this.domainIdentifier = domainIdentifier;
}
/**
*
* The identifier of the Amazon DataZone domain in which the environment is created.
*
*
* @return The identifier of the Amazon DataZone domain in which the environment is created.
*/
public String getDomainIdentifier() {
return this.domainIdentifier;
}
/**
*
* The identifier of the Amazon DataZone domain in which the environment is created.
*
*
* @param domainIdentifier
* The identifier of the Amazon DataZone domain in which the environment is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withDomainIdentifier(String domainIdentifier) {
setDomainIdentifier(domainIdentifier);
return this;
}
/**
*
* The identifier of the environment profile that is used to create this Amazon DataZone environment.
*
*
* @param environmentProfileIdentifier
* The identifier of the environment profile that is used to create this Amazon DataZone environment.
*/
public void setEnvironmentProfileIdentifier(String environmentProfileIdentifier) {
this.environmentProfileIdentifier = environmentProfileIdentifier;
}
/**
*
* The identifier of the environment profile that is used to create this Amazon DataZone environment.
*
*
* @return The identifier of the environment profile that is used to create this Amazon DataZone environment.
*/
public String getEnvironmentProfileIdentifier() {
return this.environmentProfileIdentifier;
}
/**
*
* The identifier of the environment profile that is used to create this Amazon DataZone environment.
*
*
* @param environmentProfileIdentifier
* The identifier of the environment profile that is used to create this Amazon DataZone environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withEnvironmentProfileIdentifier(String environmentProfileIdentifier) {
setEnvironmentProfileIdentifier(environmentProfileIdentifier);
return this;
}
/**
*
* The glossary terms that can be used in this Amazon DataZone environment.
*
*
* @return The glossary terms that can be used in this Amazon DataZone environment.
*/
public java.util.List getGlossaryTerms() {
return glossaryTerms;
}
/**
*
* The glossary terms that can be used in this Amazon DataZone environment.
*
*
* @param glossaryTerms
* The glossary terms that can be used in this Amazon DataZone environment.
*/
public void setGlossaryTerms(java.util.Collection glossaryTerms) {
if (glossaryTerms == null) {
this.glossaryTerms = null;
return;
}
this.glossaryTerms = new java.util.ArrayList(glossaryTerms);
}
/**
*
* The glossary terms that can be used in this Amazon DataZone environment.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setGlossaryTerms(java.util.Collection)} or {@link #withGlossaryTerms(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param glossaryTerms
* The glossary terms that can be used in this Amazon DataZone environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withGlossaryTerms(String... glossaryTerms) {
if (this.glossaryTerms == null) {
setGlossaryTerms(new java.util.ArrayList(glossaryTerms.length));
}
for (String ele : glossaryTerms) {
this.glossaryTerms.add(ele);
}
return this;
}
/**
*
* The glossary terms that can be used in this Amazon DataZone environment.
*
*
* @param glossaryTerms
* The glossary terms that can be used in this Amazon DataZone environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withGlossaryTerms(java.util.Collection glossaryTerms) {
setGlossaryTerms(glossaryTerms);
return this;
}
/**
*
* The name of the Amazon DataZone environment.
*
*
* @param name
* The name of the Amazon DataZone environment.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the Amazon DataZone environment.
*
*
* @return The name of the Amazon DataZone environment.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the Amazon DataZone environment.
*
*
* @param name
* The name of the Amazon DataZone environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The identifier of the Amazon DataZone project in which this environment is created.
*
*
* @param projectIdentifier
* The identifier of the Amazon DataZone project in which this environment is created.
*/
public void setProjectIdentifier(String projectIdentifier) {
this.projectIdentifier = projectIdentifier;
}
/**
*
* The identifier of the Amazon DataZone project in which this environment is created.
*
*
* @return The identifier of the Amazon DataZone project in which this environment is created.
*/
public String getProjectIdentifier() {
return this.projectIdentifier;
}
/**
*
* The identifier of the Amazon DataZone project in which this environment is created.
*
*
* @param projectIdentifier
* The identifier of the Amazon DataZone project in which this environment is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withProjectIdentifier(String projectIdentifier) {
setProjectIdentifier(projectIdentifier);
return this;
}
/**
*
* The user parameters of this Amazon DataZone environment.
*
*
* @return The user parameters of this Amazon DataZone environment.
*/
public java.util.List getUserParameters() {
return userParameters;
}
/**
*
* The user parameters of this Amazon DataZone environment.
*
*
* @param userParameters
* The user parameters of this Amazon DataZone environment.
*/
public void setUserParameters(java.util.Collection userParameters) {
if (userParameters == null) {
this.userParameters = null;
return;
}
this.userParameters = new java.util.ArrayList(userParameters);
}
/**
*
* The user parameters of this Amazon DataZone environment.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setUserParameters(java.util.Collection)} or {@link #withUserParameters(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param userParameters
* The user parameters of this Amazon DataZone environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withUserParameters(EnvironmentParameter... userParameters) {
if (this.userParameters == null) {
setUserParameters(new java.util.ArrayList(userParameters.length));
}
for (EnvironmentParameter ele : userParameters) {
this.userParameters.add(ele);
}
return this;
}
/**
*
* The user parameters of this Amazon DataZone environment.
*
*
* @param userParameters
* The user parameters of this Amazon DataZone environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentRequest withUserParameters(java.util.Collection userParameters) {
setUserParameters(userParameters);
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 (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getDomainIdentifier() != null)
sb.append("DomainIdentifier: ").append(getDomainIdentifier()).append(",");
if (getEnvironmentProfileIdentifier() != null)
sb.append("EnvironmentProfileIdentifier: ").append(getEnvironmentProfileIdentifier()).append(",");
if (getGlossaryTerms() != null)
sb.append("GlossaryTerms: ").append(getGlossaryTerms()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getProjectIdentifier() != null)
sb.append("ProjectIdentifier: ").append(getProjectIdentifier()).append(",");
if (getUserParameters() != null)
sb.append("UserParameters: ").append(getUserParameters());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateEnvironmentRequest == false)
return false;
CreateEnvironmentRequest other = (CreateEnvironmentRequest) obj;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getDomainIdentifier() == null ^ this.getDomainIdentifier() == null)
return false;
if (other.getDomainIdentifier() != null && other.getDomainIdentifier().equals(this.getDomainIdentifier()) == false)
return false;
if (other.getEnvironmentProfileIdentifier() == null ^ this.getEnvironmentProfileIdentifier() == null)
return false;
if (other.getEnvironmentProfileIdentifier() != null && other.getEnvironmentProfileIdentifier().equals(this.getEnvironmentProfileIdentifier()) == false)
return false;
if (other.getGlossaryTerms() == null ^ this.getGlossaryTerms() == null)
return false;
if (other.getGlossaryTerms() != null && other.getGlossaryTerms().equals(this.getGlossaryTerms()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getProjectIdentifier() == null ^ this.getProjectIdentifier() == null)
return false;
if (other.getProjectIdentifier() != null && other.getProjectIdentifier().equals(this.getProjectIdentifier()) == false)
return false;
if (other.getUserParameters() == null ^ this.getUserParameters() == null)
return false;
if (other.getUserParameters() != null && other.getUserParameters().equals(this.getUserParameters()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getDomainIdentifier() == null) ? 0 : getDomainIdentifier().hashCode());
hashCode = prime * hashCode + ((getEnvironmentProfileIdentifier() == null) ? 0 : getEnvironmentProfileIdentifier().hashCode());
hashCode = prime * hashCode + ((getGlossaryTerms() == null) ? 0 : getGlossaryTerms().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getProjectIdentifier() == null) ? 0 : getProjectIdentifier().hashCode());
hashCode = prime * hashCode + ((getUserParameters() == null) ? 0 : getUserParameters().hashCode());
return hashCode;
}
@Override
public CreateEnvironmentRequest clone() {
return (CreateEnvironmentRequest) super.clone();
}
}