* The ARN of the Amazon QuickSight namespace you created. *
*/ private String arn; /** ** The name of the new namespace that you created. *
*/ private String name; /** ** The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. This is * set to the region that you run CreateNamespace in. *
*/ private String capacityRegion; /** *
* The status of the creation of the namespace. This is an asynchronous process. A status of CREATED
* means that your namespace is ready to use. If an error occurs, it indicates if the process is
* retryable
or non-retryable
. In the case of a non-retryable error, refer to the error
* message for follow-up tasks.
*
* Specifies the type of your user identity directory. Currently, this supports users with an identity type of
* QUICKSIGHT
.
*
* The Amazon Web Services request ID for this operation. *
*/ private String requestId; /** ** The HTTP status of the request. *
*/ private Integer status; /** ** The ARN of the Amazon QuickSight namespace you created. *
* * @param arn * The ARN of the Amazon QuickSight namespace you created. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the Amazon QuickSight namespace you created. *
* * @return The ARN of the Amazon QuickSight namespace you created. */ public String getArn() { return this.arn; } /** ** The ARN of the Amazon QuickSight namespace you created. *
* * @param arn * The ARN of the Amazon QuickSight namespace you created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceResult withArn(String arn) { setArn(arn); return this; } /** ** The name of the new namespace that you created. *
* * @param name * The name of the new namespace that you created. */ public void setName(String name) { this.name = name; } /** ** The name of the new namespace that you created. *
* * @return The name of the new namespace that you created. */ public String getName() { return this.name; } /** ** The name of the new namespace that you created. *
* * @param name * The name of the new namespace that you created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceResult withName(String name) { setName(name); return this; } /** ** The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. This is * set to the region that you run CreateNamespace in. *
* * @param capacityRegion * The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. * This is set to the region that you run CreateNamespace in. */ public void setCapacityRegion(String capacityRegion) { this.capacityRegion = capacityRegion; } /** ** The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. This is * set to the region that you run CreateNamespace in. *
* * @return The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. * This is set to the region that you run CreateNamespace in. */ public String getCapacityRegion() { return this.capacityRegion; } /** ** The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. This is * set to the region that you run CreateNamespace in. *
* * @param capacityRegion * The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. * This is set to the region that you run CreateNamespace in. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceResult withCapacityRegion(String capacityRegion) { setCapacityRegion(capacityRegion); return this; } /** *
* The status of the creation of the namespace. This is an asynchronous process. A status of CREATED
* means that your namespace is ready to use. If an error occurs, it indicates if the process is
* retryable
or non-retryable
. In the case of a non-retryable error, refer to the error
* message for follow-up tasks.
*
CREATED
means that your namespace is ready to use. If an error occurs, it indicates if the
* process is retryable
or non-retryable
. In the case of a non-retryable error,
* refer to the error message for follow-up tasks.
* @see NamespaceStatus
*/
public void setCreationStatus(String creationStatus) {
this.creationStatus = creationStatus;
}
/**
*
* The status of the creation of the namespace. This is an asynchronous process. A status of CREATED
* means that your namespace is ready to use. If an error occurs, it indicates if the process is
* retryable
or non-retryable
. In the case of a non-retryable error, refer to the error
* message for follow-up tasks.
*
CREATED
means that your namespace is ready to use. If an error occurs, it indicates if the
* process is retryable
or non-retryable
. In the case of a non-retryable error,
* refer to the error message for follow-up tasks.
* @see NamespaceStatus
*/
public String getCreationStatus() {
return this.creationStatus;
}
/**
*
* The status of the creation of the namespace. This is an asynchronous process. A status of CREATED
* means that your namespace is ready to use. If an error occurs, it indicates if the process is
* retryable
or non-retryable
. In the case of a non-retryable error, refer to the error
* message for follow-up tasks.
*
CREATED
means that your namespace is ready to use. If an error occurs, it indicates if the
* process is retryable
or non-retryable
. In the case of a non-retryable error,
* refer to the error message for follow-up tasks.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NamespaceStatus
*/
public CreateNamespaceResult withCreationStatus(String creationStatus) {
setCreationStatus(creationStatus);
return this;
}
/**
*
* The status of the creation of the namespace. This is an asynchronous process. A status of CREATED
* means that your namespace is ready to use. If an error occurs, it indicates if the process is
* retryable
or non-retryable
. In the case of a non-retryable error, refer to the error
* message for follow-up tasks.
*
CREATED
means that your namespace is ready to use. If an error occurs, it indicates if the
* process is retryable
or non-retryable
. In the case of a non-retryable error,
* refer to the error message for follow-up tasks.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NamespaceStatus
*/
public CreateNamespaceResult withCreationStatus(NamespaceStatus creationStatus) {
this.creationStatus = creationStatus.toString();
return this;
}
/**
*
* Specifies the type of your user identity directory. Currently, this supports users with an identity type of
* QUICKSIGHT
.
*
QUICKSIGHT
.
* @see IdentityStore
*/
public void setIdentityStore(String identityStore) {
this.identityStore = identityStore;
}
/**
*
* Specifies the type of your user identity directory. Currently, this supports users with an identity type of
* QUICKSIGHT
.
*
QUICKSIGHT
.
* @see IdentityStore
*/
public String getIdentityStore() {
return this.identityStore;
}
/**
*
* Specifies the type of your user identity directory. Currently, this supports users with an identity type of
* QUICKSIGHT
.
*
QUICKSIGHT
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IdentityStore
*/
public CreateNamespaceResult withIdentityStore(String identityStore) {
setIdentityStore(identityStore);
return this;
}
/**
*
* Specifies the type of your user identity directory. Currently, this supports users with an identity type of
* QUICKSIGHT
.
*
QUICKSIGHT
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IdentityStore
*/
public CreateNamespaceResult withIdentityStore(IdentityStore identityStore) {
this.identityStore = identityStore.toString();
return this;
}
/**
* * The Amazon Web Services request ID for this operation. *
* * @param requestId * The Amazon Web Services request ID for this operation. */ public void setRequestId(String requestId) { this.requestId = requestId; } /** ** The Amazon Web Services request ID for this operation. *
* * @return The Amazon Web Services request ID for this operation. */ public String getRequestId() { return this.requestId; } /** ** The Amazon Web Services request ID for this operation. *
* * @param requestId * The Amazon Web Services request ID for this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceResult withRequestId(String requestId) { setRequestId(requestId); return this; } /** ** The HTTP status of the request. *
* * @param status * The HTTP status of the request. */ public void setStatus(Integer status) { this.status = status; } /** ** The HTTP status of the request. *
* * @return The HTTP status of the request. */ public Integer getStatus() { return this.status; } /** ** The HTTP status of the request. *
* * @param status * The HTTP status of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceResult withStatus(Integer status) { setStatus(status); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getCapacityRegion() != null) sb.append("CapacityRegion: ").append(getCapacityRegion()).append(","); if (getCreationStatus() != null) sb.append("CreationStatus: ").append(getCreationStatus()).append(","); if (getIdentityStore() != null) sb.append("IdentityStore: ").append(getIdentityStore()).append(","); if (getRequestId() != null) sb.append("RequestId: ").append(getRequestId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateNamespaceResult == false) return false; CreateNamespaceResult other = (CreateNamespaceResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getCapacityRegion() == null ^ this.getCapacityRegion() == null) return false; if (other.getCapacityRegion() != null && other.getCapacityRegion().equals(this.getCapacityRegion()) == false) return false; if (other.getCreationStatus() == null ^ this.getCreationStatus() == null) return false; if (other.getCreationStatus() != null && other.getCreationStatus().equals(this.getCreationStatus()) == false) return false; if (other.getIdentityStore() == null ^ this.getIdentityStore() == null) return false; if (other.getIdentityStore() != null && other.getIdentityStore().equals(this.getIdentityStore()) == false) return false; if (other.getRequestId() == null ^ this.getRequestId() == null) return false; if (other.getRequestId() != null && other.getRequestId().equals(this.getRequestId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCapacityRegion() == null) ? 0 : getCapacityRegion().hashCode()); hashCode = prime * hashCode + ((getCreationStatus() == null) ? 0 : getCreationStatus().hashCode()); hashCode = prime * hashCode + ((getIdentityStore() == null) ? 0 : getIdentityStore().hashCode()); hashCode = prime * hashCode + ((getRequestId() == null) ? 0 : getRequestId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public CreateNamespaceResult clone() { try { return (CreateNamespaceResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }