com.amazonaws.services.voiceid.model.DomainSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-voiceid Show documentation
/*
* 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.voiceid.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains a summary of information about a domain.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DomainSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) for the domain.
*
*/
private String arn;
/**
*
* The timestamp of when the domain was created.
*
*/
private java.util.Date createdAt;
/**
*
* The description of the domain.
*
*/
private String description;
/**
*
* The identifier of the domain.
*
*/
private String domainId;
/**
*
* The current status of the domain.
*
*/
private String domainStatus;
/**
*
* The client-provided name for the domain.
*
*/
private String name;
/**
*
* The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt
* your data.
*
*/
private ServerSideEncryptionConfiguration serverSideEncryptionConfiguration;
/**
*
* Details about the most recent server-side encryption configuration update. When the server-side encryption
* configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this
* update is complete, the domain's data can only be accessed using the new KMS key.
*
*/
private ServerSideEncryptionUpdateDetails serverSideEncryptionUpdateDetails;
/**
*
* The timestamp of when the domain was last updated.
*
*/
private java.util.Date updatedAt;
/**
*
* Provides information about watchlistDetails
and DefaultWatchlistID
.
*
*/
private WatchlistDetails watchlistDetails;
/**
*
* The Amazon Resource Name (ARN) for the domain.
*
*
* @param arn
* The Amazon Resource Name (ARN) for the domain.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) for the domain.
*
*
* @return The Amazon Resource Name (ARN) for the domain.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) for the domain.
*
*
* @param arn
* The Amazon Resource Name (ARN) for the domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The timestamp of when the domain was created.
*
*
* @param createdAt
* The timestamp of when the domain was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The timestamp of when the domain was created.
*
*
* @return The timestamp of when the domain was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The timestamp of when the domain was created.
*
*
* @param createdAt
* The timestamp of when the domain was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The description of the domain.
*
*
* @param description
* The description of the domain.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the domain.
*
*
* @return The description of the domain.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the domain.
*
*
* @param description
* The description of the domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The identifier of the domain.
*
*
* @param domainId
* The identifier of the domain.
*/
public void setDomainId(String domainId) {
this.domainId = domainId;
}
/**
*
* The identifier of the domain.
*
*
* @return The identifier of the domain.
*/
public String getDomainId() {
return this.domainId;
}
/**
*
* The identifier of the domain.
*
*
* @param domainId
* The identifier of the domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withDomainId(String domainId) {
setDomainId(domainId);
return this;
}
/**
*
* The current status of the domain.
*
*
* @param domainStatus
* The current status of the domain.
* @see DomainStatus
*/
public void setDomainStatus(String domainStatus) {
this.domainStatus = domainStatus;
}
/**
*
* The current status of the domain.
*
*
* @return The current status of the domain.
* @see DomainStatus
*/
public String getDomainStatus() {
return this.domainStatus;
}
/**
*
* The current status of the domain.
*
*
* @param domainStatus
* The current status of the domain.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DomainStatus
*/
public DomainSummary withDomainStatus(String domainStatus) {
setDomainStatus(domainStatus);
return this;
}
/**
*
* The current status of the domain.
*
*
* @param domainStatus
* The current status of the domain.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DomainStatus
*/
public DomainSummary withDomainStatus(DomainStatus domainStatus) {
this.domainStatus = domainStatus.toString();
return this;
}
/**
*
* The client-provided name for the domain.
*
*
* @param name
* The client-provided name for the domain.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The client-provided name for the domain.
*
*
* @return The client-provided name for the domain.
*/
public String getName() {
return this.name;
}
/**
*
* The client-provided name for the domain.
*
*
* @param name
* The client-provided name for the domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withName(String name) {
setName(name);
return this;
}
/**
*
* The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt
* your data.
*
*
* @param serverSideEncryptionConfiguration
* The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to
* encrypt your data.
*/
public void setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) {
this.serverSideEncryptionConfiguration = serverSideEncryptionConfiguration;
}
/**
*
* The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt
* your data.
*
*
* @return The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to
* encrypt your data.
*/
public ServerSideEncryptionConfiguration getServerSideEncryptionConfiguration() {
return this.serverSideEncryptionConfiguration;
}
/**
*
* The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt
* your data.
*
*
* @param serverSideEncryptionConfiguration
* The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to
* encrypt your data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) {
setServerSideEncryptionConfiguration(serverSideEncryptionConfiguration);
return this;
}
/**
*
* Details about the most recent server-side encryption configuration update. When the server-side encryption
* configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this
* update is complete, the domain's data can only be accessed using the new KMS key.
*
*
* @param serverSideEncryptionUpdateDetails
* Details about the most recent server-side encryption configuration update. When the server-side encryption
* configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When
* this update is complete, the domain's data can only be accessed using the new KMS key.
*/
public void setServerSideEncryptionUpdateDetails(ServerSideEncryptionUpdateDetails serverSideEncryptionUpdateDetails) {
this.serverSideEncryptionUpdateDetails = serverSideEncryptionUpdateDetails;
}
/**
*
* Details about the most recent server-side encryption configuration update. When the server-side encryption
* configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this
* update is complete, the domain's data can only be accessed using the new KMS key.
*
*
* @return Details about the most recent server-side encryption configuration update. When the server-side
* encryption configuration is changed, dependency on the old KMS key is removed through an asynchronous
* process. When this update is complete, the domain's data can only be accessed using the new KMS key.
*/
public ServerSideEncryptionUpdateDetails getServerSideEncryptionUpdateDetails() {
return this.serverSideEncryptionUpdateDetails;
}
/**
*
* Details about the most recent server-side encryption configuration update. When the server-side encryption
* configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this
* update is complete, the domain's data can only be accessed using the new KMS key.
*
*
* @param serverSideEncryptionUpdateDetails
* Details about the most recent server-side encryption configuration update. When the server-side encryption
* configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When
* this update is complete, the domain's data can only be accessed using the new KMS key.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withServerSideEncryptionUpdateDetails(ServerSideEncryptionUpdateDetails serverSideEncryptionUpdateDetails) {
setServerSideEncryptionUpdateDetails(serverSideEncryptionUpdateDetails);
return this;
}
/**
*
* The timestamp of when the domain was last updated.
*
*
* @param updatedAt
* The timestamp of when the domain was last updated.
*/
public void setUpdatedAt(java.util.Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* The timestamp of when the domain was last updated.
*
*
* @return The timestamp of when the domain was last updated.
*/
public java.util.Date getUpdatedAt() {
return this.updatedAt;
}
/**
*
* The timestamp of when the domain was last updated.
*
*
* @param updatedAt
* The timestamp of when the domain was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withUpdatedAt(java.util.Date updatedAt) {
setUpdatedAt(updatedAt);
return this;
}
/**
*
* Provides information about watchlistDetails
and DefaultWatchlistID
.
*
*
* @param watchlistDetails
* Provides information about watchlistDetails
and DefaultWatchlistID
.
*/
public void setWatchlistDetails(WatchlistDetails watchlistDetails) {
this.watchlistDetails = watchlistDetails;
}
/**
*
* Provides information about watchlistDetails
and DefaultWatchlistID
.
*
*
* @return Provides information about watchlistDetails
and DefaultWatchlistID
.
*/
public WatchlistDetails getWatchlistDetails() {
return this.watchlistDetails;
}
/**
*
* Provides information about watchlistDetails
and DefaultWatchlistID
.
*
*
* @param watchlistDetails
* Provides information about watchlistDetails
and DefaultWatchlistID
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DomainSummary withWatchlistDetails(WatchlistDetails watchlistDetails) {
setWatchlistDetails(watchlistDetails);
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 (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getDescription() != null)
sb.append("Description: ").append("***Sensitive Data Redacted***").append(",");
if (getDomainId() != null)
sb.append("DomainId: ").append(getDomainId()).append(",");
if (getDomainStatus() != null)
sb.append("DomainStatus: ").append(getDomainStatus()).append(",");
if (getName() != null)
sb.append("Name: ").append("***Sensitive Data Redacted***").append(",");
if (getServerSideEncryptionConfiguration() != null)
sb.append("ServerSideEncryptionConfiguration: ").append(getServerSideEncryptionConfiguration()).append(",");
if (getServerSideEncryptionUpdateDetails() != null)
sb.append("ServerSideEncryptionUpdateDetails: ").append(getServerSideEncryptionUpdateDetails()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt()).append(",");
if (getWatchlistDetails() != null)
sb.append("WatchlistDetails: ").append(getWatchlistDetails());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DomainSummary == false)
return false;
DomainSummary other = (DomainSummary) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == 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.getDomainId() == null ^ this.getDomainId() == null)
return false;
if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false)
return false;
if (other.getDomainStatus() == null ^ this.getDomainStatus() == null)
return false;
if (other.getDomainStatus() != null && other.getDomainStatus().equals(this.getDomainStatus()) == 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.getServerSideEncryptionConfiguration() == null ^ this.getServerSideEncryptionConfiguration() == null)
return false;
if (other.getServerSideEncryptionConfiguration() != null
&& other.getServerSideEncryptionConfiguration().equals(this.getServerSideEncryptionConfiguration()) == false)
return false;
if (other.getServerSideEncryptionUpdateDetails() == null ^ this.getServerSideEncryptionUpdateDetails() == null)
return false;
if (other.getServerSideEncryptionUpdateDetails() != null
&& other.getServerSideEncryptionUpdateDetails().equals(this.getServerSideEncryptionUpdateDetails()) == false)
return false;
if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
if (other.getWatchlistDetails() == null ^ this.getWatchlistDetails() == null)
return false;
if (other.getWatchlistDetails() != null && other.getWatchlistDetails().equals(this.getWatchlistDetails()) == 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 + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode());
hashCode = prime * hashCode + ((getDomainStatus() == null) ? 0 : getDomainStatus().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getServerSideEncryptionConfiguration() == null) ? 0 : getServerSideEncryptionConfiguration().hashCode());
hashCode = prime * hashCode + ((getServerSideEncryptionUpdateDetails() == null) ? 0 : getServerSideEncryptionUpdateDetails().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
hashCode = prime * hashCode + ((getWatchlistDetails() == null) ? 0 : getWatchlistDetails().hashCode());
return hashCode;
}
@Override
public DomainSummary clone() {
try {
return (DomainSummary) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.voiceid.model.transform.DomainSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}