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

com.amazonaws.services.chime.model.TelephonySettings Maven / Gradle / Ivy

Go to download

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

The 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.chime.model;

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

/**
 * 

* Settings that allow management of telephony permissions for an Amazon Chime user, such as inbound and outbound * calling and text messaging. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TelephonySettings implements Serializable, Cloneable, StructuredPojo { /** *

* Allows or denies inbound calling. *

*/ private Boolean inboundCalling; /** *

* Allows or denies outbound calling. *

*/ private Boolean outboundCalling; /** *

* Allows or denies SMS messaging. *

*/ private Boolean sMS; /** *

* Allows or denies inbound calling. *

* * @param inboundCalling * Allows or denies inbound calling. */ public void setInboundCalling(Boolean inboundCalling) { this.inboundCalling = inboundCalling; } /** *

* Allows or denies inbound calling. *

* * @return Allows or denies inbound calling. */ public Boolean getInboundCalling() { return this.inboundCalling; } /** *

* Allows or denies inbound calling. *

* * @param inboundCalling * Allows or denies inbound calling. * @return Returns a reference to this object so that method calls can be chained together. */ public TelephonySettings withInboundCalling(Boolean inboundCalling) { setInboundCalling(inboundCalling); return this; } /** *

* Allows or denies inbound calling. *

* * @return Allows or denies inbound calling. */ public Boolean isInboundCalling() { return this.inboundCalling; } /** *

* Allows or denies outbound calling. *

* * @param outboundCalling * Allows or denies outbound calling. */ public void setOutboundCalling(Boolean outboundCalling) { this.outboundCalling = outboundCalling; } /** *

* Allows or denies outbound calling. *

* * @return Allows or denies outbound calling. */ public Boolean getOutboundCalling() { return this.outboundCalling; } /** *

* Allows or denies outbound calling. *

* * @param outboundCalling * Allows or denies outbound calling. * @return Returns a reference to this object so that method calls can be chained together. */ public TelephonySettings withOutboundCalling(Boolean outboundCalling) { setOutboundCalling(outboundCalling); return this; } /** *

* Allows or denies outbound calling. *

* * @return Allows or denies outbound calling. */ public Boolean isOutboundCalling() { return this.outboundCalling; } /** *

* Allows or denies SMS messaging. *

* * @param sMS * Allows or denies SMS messaging. */ public void setSMS(Boolean sMS) { this.sMS = sMS; } /** *

* Allows or denies SMS messaging. *

* * @return Allows or denies SMS messaging. */ public Boolean getSMS() { return this.sMS; } /** *

* Allows or denies SMS messaging. *

* * @param sMS * Allows or denies SMS messaging. * @return Returns a reference to this object so that method calls can be chained together. */ public TelephonySettings withSMS(Boolean sMS) { setSMS(sMS); return this; } /** *

* Allows or denies SMS messaging. *

* * @return Allows or denies SMS messaging. */ public Boolean isSMS() { return this.sMS; } /** * 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 (getInboundCalling() != null) sb.append("InboundCalling: ").append(getInboundCalling()).append(","); if (getOutboundCalling() != null) sb.append("OutboundCalling: ").append(getOutboundCalling()).append(","); if (getSMS() != null) sb.append("SMS: ").append(getSMS()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TelephonySettings == false) return false; TelephonySettings other = (TelephonySettings) obj; if (other.getInboundCalling() == null ^ this.getInboundCalling() == null) return false; if (other.getInboundCalling() != null && other.getInboundCalling().equals(this.getInboundCalling()) == false) return false; if (other.getOutboundCalling() == null ^ this.getOutboundCalling() == null) return false; if (other.getOutboundCalling() != null && other.getOutboundCalling().equals(this.getOutboundCalling()) == false) return false; if (other.getSMS() == null ^ this.getSMS() == null) return false; if (other.getSMS() != null && other.getSMS().equals(this.getSMS()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInboundCalling() == null) ? 0 : getInboundCalling().hashCode()); hashCode = prime * hashCode + ((getOutboundCalling() == null) ? 0 : getOutboundCalling().hashCode()); hashCode = prime * hashCode + ((getSMS() == null) ? 0 : getSMS().hashCode()); return hashCode; } @Override public TelephonySettings clone() { try { return (TelephonySettings) 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.TelephonySettingsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy