/* * Copyright 2018-2023 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.pinpointsmsvoicev2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The metadata for an origination identity associated with a pool. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OriginationIdentityMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) associated with the origination identity. *
*/ private String originationIdentityArn; /** ** The unique identifier of the origination identity. *
*/ private String originationIdentity; /** ** The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. *
*/ private String isoCountryCode; /** ** Describes if the origination identity can be used for text messages, voice calls or both. *
*/ private java.util.List* The Amazon Resource Name (ARN) associated with the origination identity. *
* * @param originationIdentityArn * The Amazon Resource Name (ARN) associated with the origination identity. */ public void setOriginationIdentityArn(String originationIdentityArn) { this.originationIdentityArn = originationIdentityArn; } /** ** The Amazon Resource Name (ARN) associated with the origination identity. *
* * @return The Amazon Resource Name (ARN) associated with the origination identity. */ public String getOriginationIdentityArn() { return this.originationIdentityArn; } /** ** The Amazon Resource Name (ARN) associated with the origination identity. *
* * @param originationIdentityArn * The Amazon Resource Name (ARN) associated with the origination identity. * @return Returns a reference to this object so that method calls can be chained together. */ public OriginationIdentityMetadata withOriginationIdentityArn(String originationIdentityArn) { setOriginationIdentityArn(originationIdentityArn); return this; } /** ** The unique identifier of the origination identity. *
* * @param originationIdentity * The unique identifier of the origination identity. */ public void setOriginationIdentity(String originationIdentity) { this.originationIdentity = originationIdentity; } /** ** The unique identifier of the origination identity. *
* * @return The unique identifier of the origination identity. */ public String getOriginationIdentity() { return this.originationIdentity; } /** ** The unique identifier of the origination identity. *
* * @param originationIdentity * The unique identifier of the origination identity. * @return Returns a reference to this object so that method calls can be chained together. */ public OriginationIdentityMetadata withOriginationIdentity(String originationIdentity) { setOriginationIdentity(originationIdentity); return this; } /** ** The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. *
* * @param isoCountryCode * The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. */ public void setIsoCountryCode(String isoCountryCode) { this.isoCountryCode = isoCountryCode; } /** ** The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. *
* * @return The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. */ public String getIsoCountryCode() { return this.isoCountryCode; } /** ** The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. *
* * @param isoCountryCode * The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. * @return Returns a reference to this object so that method calls can be chained together. */ public OriginationIdentityMetadata withIsoCountryCode(String isoCountryCode) { setIsoCountryCode(isoCountryCode); return this; } /** ** Describes if the origination identity can be used for text messages, voice calls or both. *
* * @return Describes if the origination identity can be used for text messages, voice calls or both. * @see NumberCapability */ public java.util.List* Describes if the origination identity can be used for text messages, voice calls or both. *
* * @param numberCapabilities * Describes if the origination identity can be used for text messages, voice calls or both. * @see NumberCapability */ public void setNumberCapabilities(java.util.Collection* Describes if the origination identity can be used for text messages, voice calls or both. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNumberCapabilities(java.util.Collection)} or {@link #withNumberCapabilities(java.util.Collection)} if * you want to override the existing values. *
* * @param numberCapabilities * Describes if the origination identity can be used for text messages, voice calls or both. * @return Returns a reference to this object so that method calls can be chained together. * @see NumberCapability */ public OriginationIdentityMetadata withNumberCapabilities(String... numberCapabilities) { if (this.numberCapabilities == null) { setNumberCapabilities(new java.util.ArrayList* Describes if the origination identity can be used for text messages, voice calls or both. *
* * @param numberCapabilities * Describes if the origination identity can be used for text messages, voice calls or both. * @return Returns a reference to this object so that method calls can be chained together. * @see NumberCapability */ public OriginationIdentityMetadata withNumberCapabilities(java.util.Collection* Describes if the origination identity can be used for text messages, voice calls or both. *
* * @param numberCapabilities * Describes if the origination identity can be used for text messages, voice calls or both. * @return Returns a reference to this object so that method calls can be chained together. * @see NumberCapability */ public OriginationIdentityMetadata withNumberCapabilities(NumberCapability... numberCapabilities) { java.util.ArrayList