com.amazonaws.services.finspace.model.CreateKxEnvironmentResult 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.finspace.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateKxEnvironmentResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The name of the kdb environment.
*
*/
private String name;
/**
*
* The status of the kdb environment.
*
*/
private String status;
/**
*
* A unique identifier for the kdb environment.
*
*/
private String environmentId;
/**
*
* A description for the kdb environment.
*
*/
private String description;
/**
*
* The ARN identifier of the environment.
*
*/
private String environmentArn;
/**
*
* The KMS key ID to encrypt your data in the FinSpace environment.
*
*/
private String kmsKeyId;
/**
*
* The timestamp at which the kdb environment was created in FinSpace.
*
*/
private java.util.Date creationTimestamp;
/**
*
* The name of the kdb environment.
*
*
* @param name
* The name of the kdb environment.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the kdb environment.
*
*
* @return The name of the kdb environment.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the kdb environment.
*
*
* @param name
* The name of the kdb environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateKxEnvironmentResult withName(String name) {
setName(name);
return this;
}
/**
*
* The status of the kdb environment.
*
*
* @param status
* The status of the kdb environment.
* @see EnvironmentStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the kdb environment.
*
*
* @return The status of the kdb environment.
* @see EnvironmentStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the kdb environment.
*
*
* @param status
* The status of the kdb environment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnvironmentStatus
*/
public CreateKxEnvironmentResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the kdb environment.
*
*
* @param status
* The status of the kdb environment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnvironmentStatus
*/
public CreateKxEnvironmentResult withStatus(EnvironmentStatus status) {
this.status = status.toString();
return this;
}
/**
*
* A unique identifier for the kdb environment.
*
*
* @param environmentId
* A unique identifier for the kdb environment.
*/
public void setEnvironmentId(String environmentId) {
this.environmentId = environmentId;
}
/**
*
* A unique identifier for the kdb environment.
*
*
* @return A unique identifier for the kdb environment.
*/
public String getEnvironmentId() {
return this.environmentId;
}
/**
*
* A unique identifier for the kdb environment.
*
*
* @param environmentId
* A unique identifier for the kdb environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateKxEnvironmentResult withEnvironmentId(String environmentId) {
setEnvironmentId(environmentId);
return this;
}
/**
*
* A description for the kdb environment.
*
*
* @param description
* A description for the kdb environment.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description for the kdb environment.
*
*
* @return A description for the kdb environment.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description for the kdb environment.
*
*
* @param description
* A description for the kdb environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateKxEnvironmentResult withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The ARN identifier of the environment.
*
*
* @param environmentArn
* The ARN identifier of the environment.
*/
public void setEnvironmentArn(String environmentArn) {
this.environmentArn = environmentArn;
}
/**
*
* The ARN identifier of the environment.
*
*
* @return The ARN identifier of the environment.
*/
public String getEnvironmentArn() {
return this.environmentArn;
}
/**
*
* The ARN identifier of the environment.
*
*
* @param environmentArn
* The ARN identifier of the environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateKxEnvironmentResult withEnvironmentArn(String environmentArn) {
setEnvironmentArn(environmentArn);
return this;
}
/**
*
* The KMS key ID to encrypt your data in the FinSpace environment.
*
*
* @param kmsKeyId
* The KMS key ID to encrypt your data in the FinSpace environment.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The KMS key ID to encrypt your data in the FinSpace environment.
*
*
* @return The KMS key ID to encrypt your data in the FinSpace environment.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The KMS key ID to encrypt your data in the FinSpace environment.
*
*
* @param kmsKeyId
* The KMS key ID to encrypt your data in the FinSpace environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateKxEnvironmentResult withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The timestamp at which the kdb environment was created in FinSpace.
*
*
* @param creationTimestamp
* The timestamp at which the kdb environment was created in FinSpace.
*/
public void setCreationTimestamp(java.util.Date creationTimestamp) {
this.creationTimestamp = creationTimestamp;
}
/**
*
* The timestamp at which the kdb environment was created in FinSpace.
*
*
* @return The timestamp at which the kdb environment was created in FinSpace.
*/
public java.util.Date getCreationTimestamp() {
return this.creationTimestamp;
}
/**
*
* The timestamp at which the kdb environment was created in FinSpace.
*
*
* @param creationTimestamp
* The timestamp at which the kdb environment was created in FinSpace.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateKxEnvironmentResult withCreationTimestamp(java.util.Date creationTimestamp) {
setCreationTimestamp(creationTimestamp);
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 (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getEnvironmentId() != null)
sb.append("EnvironmentId: ").append(getEnvironmentId()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getEnvironmentArn() != null)
sb.append("EnvironmentArn: ").append(getEnvironmentArn()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getCreationTimestamp() != null)
sb.append("CreationTimestamp: ").append(getCreationTimestamp());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateKxEnvironmentResult == false)
return false;
CreateKxEnvironmentResult other = (CreateKxEnvironmentResult) obj;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null)
return false;
if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getEnvironmentArn() == null ^ this.getEnvironmentArn() == null)
return false;
if (other.getEnvironmentArn() != null && other.getEnvironmentArn().equals(this.getEnvironmentArn()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getCreationTimestamp() == null ^ this.getCreationTimestamp() == null)
return false;
if (other.getCreationTimestamp() != null && other.getCreationTimestamp().equals(this.getCreationTimestamp()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getEnvironmentArn() == null) ? 0 : getEnvironmentArn().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode());
return hashCode;
}
@Override
public CreateKxEnvironmentResult clone() {
try {
return (CreateKxEnvironmentResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}