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

com.amazonaws.services.pinpointsmsvoicev2.model.DisassociateOriginationIdentityRequest 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 DisassociateOriginationIdentityRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The unique identifier for the pool to disassociate with the origination identity. This value can be either the * PoolId or PoolArn. *

*/ private String poolId; /** *

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

*/ private String originationIdentity; /** *

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

*/ private String isoCountryCode; /** *

* Unique, case-sensitive identifier 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 unique identifier for the pool to disassociate with the origination identity. This value can be either the * PoolId or PoolArn. *

* * @param poolId * The unique identifier for the pool to disassociate with the origination identity. This value can be either * the PoolId or PoolArn. */ public void setPoolId(String poolId) { this.poolId = poolId; } /** *

* The unique identifier for the pool to disassociate with the origination identity. This value can be either the * PoolId or PoolArn. *

* * @return The unique identifier for the pool to disassociate with the origination identity. This value can be * either the PoolId or PoolArn. */ public String getPoolId() { return this.poolId; } /** *

* The unique identifier for the pool to disassociate with the origination identity. This value can be either the * PoolId or PoolArn. *

* * @param poolId * The unique identifier for the pool to disassociate with the origination identity. This value can be either * the PoolId or PoolArn. * @return Returns a reference to this object so that method calls can be chained together. */ public DisassociateOriginationIdentityRequest withPoolId(String poolId) { setPoolId(poolId); return this; } /** *

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

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

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

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

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

* * @param originationIdentity * The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can * use DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use * DescribeSenderIds to get the values for SenderId and SenderIdArn. * @return Returns a reference to this object so that method calls can be chained together. */ public DisassociateOriginationIdentityRequest 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 DisassociateOriginationIdentityRequest withIsoCountryCode(String isoCountryCode) { setIsoCountryCode(isoCountryCode); return this; } /** *

* Unique, case-sensitive identifier 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 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 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 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 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 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 DisassociateOriginationIdentityRequest 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 DisassociateOriginationIdentityRequest == false) return false; DisassociateOriginationIdentityRequest other = (DisassociateOriginationIdentityRequest) 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 DisassociateOriginationIdentityRequest clone() { return (DisassociateOriginationIdentityRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy