com.amazonaws.services.chime.model.VoiceConnector Maven / Gradle / Ivy
Show all versions of aws-java-sdk-chime 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.chime.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* The Amazon Chime Voice Connector configuration, including outbound host name and encryption settings.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class VoiceConnector implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Chime Voice Connector ID.
*
*/
private String voiceConnectorId;
/**
*
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
*
*/
private String awsRegion;
/**
*
* The name of the Amazon Chime Voice Connector.
*
*/
private String name;
/**
*
* The outbound host name for the Amazon Chime Voice Connector.
*
*/
private String outboundHostName;
/**
*
* Designates whether encryption is required for the Amazon Chime Voice Connector.
*
*/
private Boolean requireEncryption;
/**
*
* The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
*
*/
private java.util.Date createdTimestamp;
/**
*
* The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
*
*/
private java.util.Date updatedTimestamp;
/**
*
* The ARN of the specified Amazon Chime Voice Connector.
*
*/
private String voiceConnectorArn;
/**
*
* The Amazon Chime Voice Connector ID.
*
*
* @param voiceConnectorId
* The Amazon Chime Voice Connector ID.
*/
public void setVoiceConnectorId(String voiceConnectorId) {
this.voiceConnectorId = voiceConnectorId;
}
/**
*
* The Amazon Chime Voice Connector ID.
*
*
* @return The Amazon Chime Voice Connector ID.
*/
public String getVoiceConnectorId() {
return this.voiceConnectorId;
}
/**
*
* The Amazon Chime Voice Connector ID.
*
*
* @param voiceConnectorId
* The Amazon Chime Voice Connector ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VoiceConnector withVoiceConnectorId(String voiceConnectorId) {
setVoiceConnectorId(voiceConnectorId);
return this;
}
/**
*
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
*
*
* @param awsRegion
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
* @see VoiceConnectorAwsRegion
*/
public void setAwsRegion(String awsRegion) {
this.awsRegion = awsRegion;
}
/**
*
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
*
*
* @return The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
* @see VoiceConnectorAwsRegion
*/
public String getAwsRegion() {
return this.awsRegion;
}
/**
*
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
*
*
* @param awsRegion
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VoiceConnectorAwsRegion
*/
public VoiceConnector withAwsRegion(String awsRegion) {
setAwsRegion(awsRegion);
return this;
}
/**
*
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
*
*
* @param awsRegion
* The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VoiceConnectorAwsRegion
*/
public VoiceConnector withAwsRegion(VoiceConnectorAwsRegion awsRegion) {
this.awsRegion = awsRegion.toString();
return this;
}
/**
*
* The name of the Amazon Chime Voice Connector.
*
*
* @param name
* The name of the Amazon Chime Voice Connector.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the Amazon Chime Voice Connector.
*
*
* @return The name of the Amazon Chime Voice Connector.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the Amazon Chime Voice Connector.
*
*
* @param name
* The name of the Amazon Chime Voice Connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VoiceConnector withName(String name) {
setName(name);
return this;
}
/**
*
* The outbound host name for the Amazon Chime Voice Connector.
*
*
* @param outboundHostName
* The outbound host name for the Amazon Chime Voice Connector.
*/
public void setOutboundHostName(String outboundHostName) {
this.outboundHostName = outboundHostName;
}
/**
*
* The outbound host name for the Amazon Chime Voice Connector.
*
*
* @return The outbound host name for the Amazon Chime Voice Connector.
*/
public String getOutboundHostName() {
return this.outboundHostName;
}
/**
*
* The outbound host name for the Amazon Chime Voice Connector.
*
*
* @param outboundHostName
* The outbound host name for the Amazon Chime Voice Connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VoiceConnector withOutboundHostName(String outboundHostName) {
setOutboundHostName(outboundHostName);
return this;
}
/**
*
* Designates whether encryption is required for the Amazon Chime Voice Connector.
*
*
* @param requireEncryption
* Designates whether encryption is required for the Amazon Chime Voice Connector.
*/
public void setRequireEncryption(Boolean requireEncryption) {
this.requireEncryption = requireEncryption;
}
/**
*
* Designates whether encryption is required for the Amazon Chime Voice Connector.
*
*
* @return Designates whether encryption is required for the Amazon Chime Voice Connector.
*/
public Boolean getRequireEncryption() {
return this.requireEncryption;
}
/**
*
* Designates whether encryption is required for the Amazon Chime Voice Connector.
*
*
* @param requireEncryption
* Designates whether encryption is required for the Amazon Chime Voice Connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VoiceConnector withRequireEncryption(Boolean requireEncryption) {
setRequireEncryption(requireEncryption);
return this;
}
/**
*
* Designates whether encryption is required for the Amazon Chime Voice Connector.
*
*
* @return Designates whether encryption is required for the Amazon Chime Voice Connector.
*/
public Boolean isRequireEncryption() {
return this.requireEncryption;
}
/**
*
* The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
*
*
* @param createdTimestamp
* The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
*/
public void setCreatedTimestamp(java.util.Date createdTimestamp) {
this.createdTimestamp = createdTimestamp;
}
/**
*
* The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
*
*
* @return The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
*/
public java.util.Date getCreatedTimestamp() {
return this.createdTimestamp;
}
/**
*
* The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
*
*
* @param createdTimestamp
* The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VoiceConnector withCreatedTimestamp(java.util.Date createdTimestamp) {
setCreatedTimestamp(createdTimestamp);
return this;
}
/**
*
* The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
*
*
* @param updatedTimestamp
* The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
*/
public void setUpdatedTimestamp(java.util.Date updatedTimestamp) {
this.updatedTimestamp = updatedTimestamp;
}
/**
*
* The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
*
*
* @return The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
*/
public java.util.Date getUpdatedTimestamp() {
return this.updatedTimestamp;
}
/**
*
* The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
*
*
* @param updatedTimestamp
* The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VoiceConnector withUpdatedTimestamp(java.util.Date updatedTimestamp) {
setUpdatedTimestamp(updatedTimestamp);
return this;
}
/**
*
* The ARN of the specified Amazon Chime Voice Connector.
*
*
* @param voiceConnectorArn
* The ARN of the specified Amazon Chime Voice Connector.
*/
public void setVoiceConnectorArn(String voiceConnectorArn) {
this.voiceConnectorArn = voiceConnectorArn;
}
/**
*
* The ARN of the specified Amazon Chime Voice Connector.
*
*
* @return The ARN of the specified Amazon Chime Voice Connector.
*/
public String getVoiceConnectorArn() {
return this.voiceConnectorArn;
}
/**
*
* The ARN of the specified Amazon Chime Voice Connector.
*
*
* @param voiceConnectorArn
* The ARN of the specified Amazon Chime Voice Connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VoiceConnector withVoiceConnectorArn(String voiceConnectorArn) {
setVoiceConnectorArn(voiceConnectorArn);
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 (getVoiceConnectorId() != null)
sb.append("VoiceConnectorId: ").append(getVoiceConnectorId()).append(",");
if (getAwsRegion() != null)
sb.append("AwsRegion: ").append(getAwsRegion()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getOutboundHostName() != null)
sb.append("OutboundHostName: ").append(getOutboundHostName()).append(",");
if (getRequireEncryption() != null)
sb.append("RequireEncryption: ").append(getRequireEncryption()).append(",");
if (getCreatedTimestamp() != null)
sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(",");
if (getUpdatedTimestamp() != null)
sb.append("UpdatedTimestamp: ").append(getUpdatedTimestamp()).append(",");
if (getVoiceConnectorArn() != null)
sb.append("VoiceConnectorArn: ").append(getVoiceConnectorArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof VoiceConnector == false)
return false;
VoiceConnector other = (VoiceConnector) obj;
if (other.getVoiceConnectorId() == null ^ this.getVoiceConnectorId() == null)
return false;
if (other.getVoiceConnectorId() != null && other.getVoiceConnectorId().equals(this.getVoiceConnectorId()) == false)
return false;
if (other.getAwsRegion() == null ^ this.getAwsRegion() == null)
return false;
if (other.getAwsRegion() != null && other.getAwsRegion().equals(this.getAwsRegion()) == 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.getOutboundHostName() == null ^ this.getOutboundHostName() == null)
return false;
if (other.getOutboundHostName() != null && other.getOutboundHostName().equals(this.getOutboundHostName()) == false)
return false;
if (other.getRequireEncryption() == null ^ this.getRequireEncryption() == null)
return false;
if (other.getRequireEncryption() != null && other.getRequireEncryption().equals(this.getRequireEncryption()) == false)
return false;
if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null)
return false;
if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false)
return false;
if (other.getUpdatedTimestamp() == null ^ this.getUpdatedTimestamp() == null)
return false;
if (other.getUpdatedTimestamp() != null && other.getUpdatedTimestamp().equals(this.getUpdatedTimestamp()) == false)
return false;
if (other.getVoiceConnectorArn() == null ^ this.getVoiceConnectorArn() == null)
return false;
if (other.getVoiceConnectorArn() != null && other.getVoiceConnectorArn().equals(this.getVoiceConnectorArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVoiceConnectorId() == null) ? 0 : getVoiceConnectorId().hashCode());
hashCode = prime * hashCode + ((getAwsRegion() == null) ? 0 : getAwsRegion().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getOutboundHostName() == null) ? 0 : getOutboundHostName().hashCode());
hashCode = prime * hashCode + ((getRequireEncryption() == null) ? 0 : getRequireEncryption().hashCode());
hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode());
hashCode = prime * hashCode + ((getUpdatedTimestamp() == null) ? 0 : getUpdatedTimestamp().hashCode());
hashCode = prime * hashCode + ((getVoiceConnectorArn() == null) ? 0 : getVoiceConnectorArn().hashCode());
return hashCode;
}
@Override
public VoiceConnector clone() {
try {
return (VoiceConnector) 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.chime.model.transform.VoiceConnectorMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}