All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.voiceid.model.Domain Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Voice ID module holds the client classes that are used for communicating with Amazon Voice ID Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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 all the information about a domain. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Domain 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 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 update. *

*/ private java.util.Date updatedAt; /** *

* The watchlist details of a domain. Contains the default watchlist ID of the domain. *

*/ 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 Domain 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 Domain 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 Domain 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 Domain 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 Domain 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 Domain withDomainStatus(DomainStatus domainStatus) { this.domainStatus = domainStatus.toString(); return this; } /** *

* The name for the domain. *

* * @param name * The name for the domain. */ public void setName(String name) { this.name = name; } /** *

* The name for the domain. *

* * @return The name for the domain. */ public String getName() { return this.name; } /** *

* The name for the domain. *

* * @param name * The name for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public Domain 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 Domain 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 Domain withServerSideEncryptionUpdateDetails(ServerSideEncryptionUpdateDetails serverSideEncryptionUpdateDetails) { setServerSideEncryptionUpdateDetails(serverSideEncryptionUpdateDetails); return this; } /** *

* The timestamp of when the domain was last update. *

* * @param updatedAt * The timestamp of when the domain was last update. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* The timestamp of when the domain was last update. *

* * @return The timestamp of when the domain was last update. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* The timestamp of when the domain was last update. *

* * @param updatedAt * The timestamp of when the domain was last update. * @return Returns a reference to this object so that method calls can be chained together. */ public Domain withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** *

* The watchlist details of a domain. Contains the default watchlist ID of the domain. *

* * @param watchlistDetails * The watchlist details of a domain. Contains the default watchlist ID of the domain. */ public void setWatchlistDetails(WatchlistDetails watchlistDetails) { this.watchlistDetails = watchlistDetails; } /** *

* The watchlist details of a domain. Contains the default watchlist ID of the domain. *

* * @return The watchlist details of a domain. Contains the default watchlist ID of the domain. */ public WatchlistDetails getWatchlistDetails() { return this.watchlistDetails; } /** *

* The watchlist details of a domain. Contains the default watchlist ID of the domain. *

* * @param watchlistDetails * The watchlist details of a domain. Contains the default watchlist ID of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public Domain 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 Domain == false) return false; Domain other = (Domain) 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 Domain clone() { try { return (Domain) 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.DomainMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy