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

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

/*
 * 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;

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

    /**
     * 

* The Amazon Resource Name (ARN) associated with the SenderId. *

*/ private String senderIdArn; /** *

* The sender ID that was released. *

*/ private String senderId; /** *

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

*/ private String isoCountryCode; /** *

* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. *

*/ private java.util.List messageTypes; /** *

* The monthly price, in US dollars, to lease the sender ID. *

*/ private String monthlyLeasingPrice; /** *

* True if the sender ID is registered. *

*/ private Boolean registered; /** *

* The unique identifier for the registration. *

*/ private String registrationId; /** *

* The Amazon Resource Name (ARN) associated with the SenderId. *

* * @param senderIdArn * The Amazon Resource Name (ARN) associated with the SenderId. */ public void setSenderIdArn(String senderIdArn) { this.senderIdArn = senderIdArn; } /** *

* The Amazon Resource Name (ARN) associated with the SenderId. *

* * @return The Amazon Resource Name (ARN) associated with the SenderId. */ public String getSenderIdArn() { return this.senderIdArn; } /** *

* The Amazon Resource Name (ARN) associated with the SenderId. *

* * @param senderIdArn * The Amazon Resource Name (ARN) associated with the SenderId. * @return Returns a reference to this object so that method calls can be chained together. */ public ReleaseSenderIdResult withSenderIdArn(String senderIdArn) { setSenderIdArn(senderIdArn); return this; } /** *

* The sender ID that was released. *

* * @param senderId * The sender ID that was released. */ public void setSenderId(String senderId) { this.senderId = senderId; } /** *

* The sender ID that was released. *

* * @return The sender ID that was released. */ public String getSenderId() { return this.senderId; } /** *

* The sender ID that was released. *

* * @param senderId * The sender ID that was released. * @return Returns a reference to this object so that method calls can be chained together. */ public ReleaseSenderIdResult withSenderId(String senderId) { setSenderId(senderId); 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 ReleaseSenderIdResult withIsoCountryCode(String isoCountryCode) { setIsoCountryCode(isoCountryCode); return this; } /** *

* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. *

* * @return The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. * @see MessageType */ public java.util.List getMessageTypes() { return messageTypes; } /** *

* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. *

* * @param messageTypes * The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. * @see MessageType */ public void setMessageTypes(java.util.Collection messageTypes) { if (messageTypes == null) { this.messageTypes = null; return; } this.messageTypes = new java.util.ArrayList(messageTypes); } /** *

* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setMessageTypes(java.util.Collection)} or {@link #withMessageTypes(java.util.Collection)} if you want to * override the existing values. *

* * @param messageTypes * The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. * @return Returns a reference to this object so that method calls can be chained together. * @see MessageType */ public ReleaseSenderIdResult withMessageTypes(String... messageTypes) { if (this.messageTypes == null) { setMessageTypes(new java.util.ArrayList(messageTypes.length)); } for (String ele : messageTypes) { this.messageTypes.add(ele); } return this; } /** *

* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. *

* * @param messageTypes * The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. * @return Returns a reference to this object so that method calls can be chained together. * @see MessageType */ public ReleaseSenderIdResult withMessageTypes(java.util.Collection messageTypes) { setMessageTypes(messageTypes); return this; } /** *

* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. *

* * @param messageTypes * The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and * PROMOTIONAL for messages that aren't critical or time-sensitive. * @return Returns a reference to this object so that method calls can be chained together. * @see MessageType */ public ReleaseSenderIdResult withMessageTypes(MessageType... messageTypes) { java.util.ArrayList messageTypesCopy = new java.util.ArrayList(messageTypes.length); for (MessageType value : messageTypes) { messageTypesCopy.add(value.toString()); } if (getMessageTypes() == null) { setMessageTypes(messageTypesCopy); } else { getMessageTypes().addAll(messageTypesCopy); } return this; } /** *

* The monthly price, in US dollars, to lease the sender ID. *

* * @param monthlyLeasingPrice * The monthly price, in US dollars, to lease the sender ID. */ public void setMonthlyLeasingPrice(String monthlyLeasingPrice) { this.monthlyLeasingPrice = monthlyLeasingPrice; } /** *

* The monthly price, in US dollars, to lease the sender ID. *

* * @return The monthly price, in US dollars, to lease the sender ID. */ public String getMonthlyLeasingPrice() { return this.monthlyLeasingPrice; } /** *

* The monthly price, in US dollars, to lease the sender ID. *

* * @param monthlyLeasingPrice * The monthly price, in US dollars, to lease the sender ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ReleaseSenderIdResult withMonthlyLeasingPrice(String monthlyLeasingPrice) { setMonthlyLeasingPrice(monthlyLeasingPrice); return this; } /** *

* True if the sender ID is registered. *

* * @param registered * True if the sender ID is registered. */ public void setRegistered(Boolean registered) { this.registered = registered; } /** *

* True if the sender ID is registered. *

* * @return True if the sender ID is registered. */ public Boolean getRegistered() { return this.registered; } /** *

* True if the sender ID is registered. *

* * @param registered * True if the sender ID is registered. * @return Returns a reference to this object so that method calls can be chained together. */ public ReleaseSenderIdResult withRegistered(Boolean registered) { setRegistered(registered); return this; } /** *

* True if the sender ID is registered. *

* * @return True if the sender ID is registered. */ public Boolean isRegistered() { return this.registered; } /** *

* The unique identifier for the registration. *

* * @param registrationId * The unique identifier for the registration. */ public void setRegistrationId(String registrationId) { this.registrationId = registrationId; } /** *

* The unique identifier for the registration. *

* * @return The unique identifier for the registration. */ public String getRegistrationId() { return this.registrationId; } /** *

* The unique identifier for the registration. *

* * @param registrationId * The unique identifier for the registration. * @return Returns a reference to this object so that method calls can be chained together. */ public ReleaseSenderIdResult withRegistrationId(String registrationId) { setRegistrationId(registrationId); 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 (getSenderIdArn() != null) sb.append("SenderIdArn: ").append(getSenderIdArn()).append(","); if (getSenderId() != null) sb.append("SenderId: ").append(getSenderId()).append(","); if (getIsoCountryCode() != null) sb.append("IsoCountryCode: ").append(getIsoCountryCode()).append(","); if (getMessageTypes() != null) sb.append("MessageTypes: ").append(getMessageTypes()).append(","); if (getMonthlyLeasingPrice() != null) sb.append("MonthlyLeasingPrice: ").append(getMonthlyLeasingPrice()).append(","); if (getRegistered() != null) sb.append("Registered: ").append(getRegistered()).append(","); if (getRegistrationId() != null) sb.append("RegistrationId: ").append(getRegistrationId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReleaseSenderIdResult == false) return false; ReleaseSenderIdResult other = (ReleaseSenderIdResult) obj; if (other.getSenderIdArn() == null ^ this.getSenderIdArn() == null) return false; if (other.getSenderIdArn() != null && other.getSenderIdArn().equals(this.getSenderIdArn()) == false) return false; if (other.getSenderId() == null ^ this.getSenderId() == null) return false; if (other.getSenderId() != null && other.getSenderId().equals(this.getSenderId()) == 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.getMessageTypes() == null ^ this.getMessageTypes() == null) return false; if (other.getMessageTypes() != null && other.getMessageTypes().equals(this.getMessageTypes()) == false) return false; if (other.getMonthlyLeasingPrice() == null ^ this.getMonthlyLeasingPrice() == null) return false; if (other.getMonthlyLeasingPrice() != null && other.getMonthlyLeasingPrice().equals(this.getMonthlyLeasingPrice()) == false) return false; if (other.getRegistered() == null ^ this.getRegistered() == null) return false; if (other.getRegistered() != null && other.getRegistered().equals(this.getRegistered()) == false) return false; if (other.getRegistrationId() == null ^ this.getRegistrationId() == null) return false; if (other.getRegistrationId() != null && other.getRegistrationId().equals(this.getRegistrationId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSenderIdArn() == null) ? 0 : getSenderIdArn().hashCode()); hashCode = prime * hashCode + ((getSenderId() == null) ? 0 : getSenderId().hashCode()); hashCode = prime * hashCode + ((getIsoCountryCode() == null) ? 0 : getIsoCountryCode().hashCode()); hashCode = prime * hashCode + ((getMessageTypes() == null) ? 0 : getMessageTypes().hashCode()); hashCode = prime * hashCode + ((getMonthlyLeasingPrice() == null) ? 0 : getMonthlyLeasingPrice().hashCode()); hashCode = prime * hashCode + ((getRegistered() == null) ? 0 : getRegistered().hashCode()); hashCode = prime * hashCode + ((getRegistrationId() == null) ? 0 : getRegistrationId().hashCode()); return hashCode; } @Override public ReleaseSenderIdResult clone() { try { return (ReleaseSenderIdResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy