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

com.amazonaws.services.pinpointsmsvoicev2.model.AssociateOriginationIdentityRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Pinpoint SMS Voice V2 module holds the client classes that are used for communicating with Amazon Pinpoint SMS Voice V2 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.pinpointsmsvoicev2.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these * values using DescribePools. *

*/ private String poolId; /** *

* The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use * DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while * DescribeSenderIds can be used to get the values for SenderId and SenderIdArn. *

*/ private String originationIdentity; /** *

* The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination identity. *

*/ private String isoCountryCode; /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify * a client token, a randomly generated token is used for the request to ensure idempotency. *

*/ private String clientToken; /** *

* The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these * values using DescribePools. *

* * @param poolId * The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find * these values using DescribePools. */ public void setPoolId(String poolId) { this.poolId = poolId; } /** *

* The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these * values using DescribePools. *

* * @return The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can * find these values using DescribePools. */ public String getPoolId() { return this.poolId; } /** *

* The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these * values using DescribePools. *

* * @param poolId * The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find * these values using DescribePools. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateOriginationIdentityRequest withPoolId(String poolId) { setPoolId(poolId); return this; } /** *

* The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use * DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while * DescribeSenderIds can be used to get the values for SenderId and SenderIdArn. *

* * @param originationIdentity * The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can * use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while * DescribeSenderIds can be used to get the values for SenderId and SenderIdArn. */ public void setOriginationIdentity(String originationIdentity) { this.originationIdentity = originationIdentity; } /** *

* The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use * DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while * DescribeSenderIds can be used to get the values for SenderId and SenderIdArn. *

* * @return The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can * use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while * DescribeSenderIds can be used to get the values for SenderId and SenderIdArn. */ public String getOriginationIdentity() { return this.originationIdentity; } /** *

* The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use * DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while * DescribeSenderIds can be used to get the values for SenderId and SenderIdArn. *

* * @param originationIdentity * The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can * use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while * DescribeSenderIds can be used to get the values for SenderId and SenderIdArn. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateOriginationIdentityRequest withOriginationIdentity(String originationIdentity) { setOriginationIdentity(originationIdentity); return this; } /** *

* The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination identity. *

* * @param isoCountryCode * The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination * identity. */ public void setIsoCountryCode(String isoCountryCode) { this.isoCountryCode = isoCountryCode; } /** *

* The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination identity. *

* * @return The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination * identity. */ public String getIsoCountryCode() { return this.isoCountryCode; } /** *

* The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination identity. *

* * @param isoCountryCode * The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination * identity. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateOriginationIdentityRequest withIsoCountryCode(String isoCountryCode) { setIsoCountryCode(isoCountryCode); return this; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify * a client token, a randomly generated token is used for the request to ensure idempotency. *

* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't * specify a client token, a randomly generated token is used for the request to ensure idempotency. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify * a client token, a randomly generated token is used for the request to ensure idempotency. *

* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't * specify a client token, a randomly generated token is used for the request to ensure idempotency. */ public String getClientToken() { return this.clientToken; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify * a client token, a randomly generated token is used for the request to ensure idempotency. *

* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't * specify a client token, a randomly generated token is used for the request to ensure idempotency. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateOriginationIdentityRequest withClientToken(String clientToken) { setClientToken(clientToken); 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 (getPoolId() != null) sb.append("PoolId: ").append(getPoolId()).append(","); if (getOriginationIdentity() != null) sb.append("OriginationIdentity: ").append(getOriginationIdentity()).append(","); if (getIsoCountryCode() != null) sb.append("IsoCountryCode: ").append(getIsoCountryCode()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateOriginationIdentityRequest == false) return false; AssociateOriginationIdentityRequest other = (AssociateOriginationIdentityRequest) obj; if (other.getPoolId() == null ^ this.getPoolId() == null) return false; if (other.getPoolId() != null && other.getPoolId().equals(this.getPoolId()) == false) return false; if (other.getOriginationIdentity() == null ^ this.getOriginationIdentity() == null) return false; if (other.getOriginationIdentity() != null && other.getOriginationIdentity().equals(this.getOriginationIdentity()) == false) return false; if (other.getIsoCountryCode() == null ^ this.getIsoCountryCode() == null) return false; if (other.getIsoCountryCode() != null && other.getIsoCountryCode().equals(this.getIsoCountryCode()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPoolId() == null) ? 0 : getPoolId().hashCode()); hashCode = prime * hashCode + ((getOriginationIdentity() == null) ? 0 : getOriginationIdentity().hashCode()); hashCode = prime * hashCode + ((getIsoCountryCode() == null) ? 0 : getIsoCountryCode().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); return hashCode; } @Override public AssociateOriginationIdentityRequest clone() { return (AssociateOriginationIdentityRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy