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

com.amazonaws.services.chimesdkvoice.model.VoiceConnector Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
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.chimesdkvoice.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The Amazon Chime SDK 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 Voice Connector's ID. *

*/ private String voiceConnectorId; /** *

* The AWS Region in which the Voice Connector is created. Default: us-east-1. *

*/ private String awsRegion; /** *

* The Voice Connector's name. *

*/ private String name; /** *

* The outbound host name for the Voice Connector. *

*/ private String outboundHostName; /** *

* Enables or disables encryption for the Voice Connector. *

*/ private Boolean requireEncryption; /** *

* The Voice Connector's creation timestamp, in ISO 8601 format. *

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

* The Voice Connector's updated timestamp, in ISO 8601 format. *

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

* The ARN of the Voice Connector. *

*/ private String voiceConnectorArn; /** *

* The Voice Connector's ID. *

* * @param voiceConnectorId * The Voice Connector's ID. */ public void setVoiceConnectorId(String voiceConnectorId) { this.voiceConnectorId = voiceConnectorId; } /** *

* The Voice Connector's ID. *

* * @return The Voice Connector's ID. */ public String getVoiceConnectorId() { return this.voiceConnectorId; } /** *

* The Voice Connector's ID. *

* * @param voiceConnectorId * The Voice Connector's 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 Voice Connector is created. Default: us-east-1. *

* * @param awsRegion * The AWS Region in which the Voice Connector is created. Default: us-east-1. * @see VoiceConnectorAwsRegion */ public void setAwsRegion(String awsRegion) { this.awsRegion = awsRegion; } /** *

* The AWS Region in which the Voice Connector is created. Default: us-east-1. *

* * @return The AWS Region in which the Voice Connector is created. Default: us-east-1. * @see VoiceConnectorAwsRegion */ public String getAwsRegion() { return this.awsRegion; } /** *

* The AWS Region in which the Voice Connector is created. Default: us-east-1. *

* * @param awsRegion * The AWS Region in which the 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 Voice Connector is created. Default: us-east-1. *

* * @param awsRegion * The AWS Region in which the 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 Voice Connector's name. *

* * @param name * The Voice Connector's name. */ public void setName(String name) { this.name = name; } /** *

* The Voice Connector's name. *

* * @return The Voice Connector's name. */ public String getName() { return this.name; } /** *

* The Voice Connector's name. *

* * @param name * The Voice Connector's name. * @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 Voice Connector. *

* * @param outboundHostName * The outbound host name for the Voice Connector. */ public void setOutboundHostName(String outboundHostName) { this.outboundHostName = outboundHostName; } /** *

* The outbound host name for the Voice Connector. *

* * @return The outbound host name for the Voice Connector. */ public String getOutboundHostName() { return this.outboundHostName; } /** *

* The outbound host name for the Voice Connector. *

* * @param outboundHostName * The outbound host name for the 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; } /** *

* Enables or disables encryption for the Voice Connector. *

* * @param requireEncryption * Enables or disables encryption for the Voice Connector. */ public void setRequireEncryption(Boolean requireEncryption) { this.requireEncryption = requireEncryption; } /** *

* Enables or disables encryption for the Voice Connector. *

* * @return Enables or disables encryption for the Voice Connector. */ public Boolean getRequireEncryption() { return this.requireEncryption; } /** *

* Enables or disables encryption for the Voice Connector. *

* * @param requireEncryption * Enables or disables encryption for the 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; } /** *

* Enables or disables encryption for the Voice Connector. *

* * @return Enables or disables encryption for the Voice Connector. */ public Boolean isRequireEncryption() { return this.requireEncryption; } /** *

* The Voice Connector's creation timestamp, in ISO 8601 format. *

* * @param createdTimestamp * The Voice Connector's creation timestamp, in ISO 8601 format. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** *

* The Voice Connector's creation timestamp, in ISO 8601 format. *

* * @return The Voice Connector's creation timestamp, in ISO 8601 format. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** *

* The Voice Connector's creation timestamp, in ISO 8601 format. *

* * @param createdTimestamp * The Voice Connector's 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 Voice Connector's updated timestamp, in ISO 8601 format. *

* * @param updatedTimestamp * The Voice Connector's updated timestamp, in ISO 8601 format. */ public void setUpdatedTimestamp(java.util.Date updatedTimestamp) { this.updatedTimestamp = updatedTimestamp; } /** *

* The Voice Connector's updated timestamp, in ISO 8601 format. *

* * @return The Voice Connector's updated timestamp, in ISO 8601 format. */ public java.util.Date getUpdatedTimestamp() { return this.updatedTimestamp; } /** *

* The Voice Connector's updated timestamp, in ISO 8601 format. *

* * @param updatedTimestamp * The Voice Connector's updated 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 Voice Connector. *

* * @param voiceConnectorArn * The ARN of the Voice Connector. */ public void setVoiceConnectorArn(String voiceConnectorArn) { this.voiceConnectorArn = voiceConnectorArn; } /** *

* The ARN of the Voice Connector. *

* * @return The ARN of the Voice Connector. */ public String getVoiceConnectorArn() { return this.voiceConnectorArn; } /** *

* The ARN of the Voice Connector. *

* * @param voiceConnectorArn * The ARN of the 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.chimesdkvoice.model.transform.VoiceConnectorMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy