com.amazonaws.services.pinpointsmsvoicev2.model.VerifiedDestinationNumberInformation 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Provides information about the requested verified destintion phone number.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class VerifiedDestinationNumberInformation implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) for the verified destination phone number.
*
*/
private String verifiedDestinationNumberArn;
/**
*
* The unique identifier for the verified destination phone number.
*
*/
private String verifiedDestinationNumberId;
/**
*
* The verified destination phone number, in E.164 format.
*
*/
private String destinationPhoneNumber;
/**
*
* The status of the verified destination phone number.
*
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
*
*/
private String status;
/**
*
* The time when the destination phone number was created, in UNIX epoch
* time format.
*
*/
private java.util.Date createdTimestamp;
/**
*
* The Amazon Resource Name (ARN) for the verified destination phone number.
*
*
* @param verifiedDestinationNumberArn
* The Amazon Resource Name (ARN) for the verified destination phone number.
*/
public void setVerifiedDestinationNumberArn(String verifiedDestinationNumberArn) {
this.verifiedDestinationNumberArn = verifiedDestinationNumberArn;
}
/**
*
* The Amazon Resource Name (ARN) for the verified destination phone number.
*
*
* @return The Amazon Resource Name (ARN) for the verified destination phone number.
*/
public String getVerifiedDestinationNumberArn() {
return this.verifiedDestinationNumberArn;
}
/**
*
* The Amazon Resource Name (ARN) for the verified destination phone number.
*
*
* @param verifiedDestinationNumberArn
* The Amazon Resource Name (ARN) for the verified destination phone number.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedDestinationNumberInformation withVerifiedDestinationNumberArn(String verifiedDestinationNumberArn) {
setVerifiedDestinationNumberArn(verifiedDestinationNumberArn);
return this;
}
/**
*
* The unique identifier for the verified destination phone number.
*
*
* @param verifiedDestinationNumberId
* The unique identifier for the verified destination phone number.
*/
public void setVerifiedDestinationNumberId(String verifiedDestinationNumberId) {
this.verifiedDestinationNumberId = verifiedDestinationNumberId;
}
/**
*
* The unique identifier for the verified destination phone number.
*
*
* @return The unique identifier for the verified destination phone number.
*/
public String getVerifiedDestinationNumberId() {
return this.verifiedDestinationNumberId;
}
/**
*
* The unique identifier for the verified destination phone number.
*
*
* @param verifiedDestinationNumberId
* The unique identifier for the verified destination phone number.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedDestinationNumberInformation withVerifiedDestinationNumberId(String verifiedDestinationNumberId) {
setVerifiedDestinationNumberId(verifiedDestinationNumberId);
return this;
}
/**
*
* The verified destination phone number, in E.164 format.
*
*
* @param destinationPhoneNumber
* The verified destination phone number, in E.164 format.
*/
public void setDestinationPhoneNumber(String destinationPhoneNumber) {
this.destinationPhoneNumber = destinationPhoneNumber;
}
/**
*
* The verified destination phone number, in E.164 format.
*
*
* @return The verified destination phone number, in E.164 format.
*/
public String getDestinationPhoneNumber() {
return this.destinationPhoneNumber;
}
/**
*
* The verified destination phone number, in E.164 format.
*
*
* @param destinationPhoneNumber
* The verified destination phone number, in E.164 format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedDestinationNumberInformation withDestinationPhoneNumber(String destinationPhoneNumber) {
setDestinationPhoneNumber(destinationPhoneNumber);
return this;
}
/**
*
* The status of the verified destination phone number.
*
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
*
*
* @param status
* The status of the verified destination phone number.
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
* @see VerificationStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the verified destination phone number.
*
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
*
*
* @return The status of the verified destination phone number.
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
* @see VerificationStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the verified destination phone number.
*
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
*
*
* @param status
* The status of the verified destination phone number.
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see VerificationStatus
*/
public VerifiedDestinationNumberInformation withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the verified destination phone number.
*
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
*
*
* @param status
* The status of the verified destination phone number.
*
* -
*
* PENDING
: The phone number hasn't been verified yet.
*
*
* -
*
* VERIFIED
: The phone number is verified and can receive messages.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see VerificationStatus
*/
public VerifiedDestinationNumberInformation withStatus(VerificationStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The time when the destination phone number was created, in UNIX epoch
* time format.
*
*
* @param createdTimestamp
* The time when the destination phone number was created, in UNIX
* epoch time format.
*/
public void setCreatedTimestamp(java.util.Date createdTimestamp) {
this.createdTimestamp = createdTimestamp;
}
/**
*
* The time when the destination phone number was created, in UNIX epoch
* time format.
*
*
* @return The time when the destination phone number was created, in UNIX
* epoch time format.
*/
public java.util.Date getCreatedTimestamp() {
return this.createdTimestamp;
}
/**
*
* The time when the destination phone number was created, in UNIX epoch
* time format.
*
*
* @param createdTimestamp
* The time when the destination phone number was created, in UNIX
* epoch time format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedDestinationNumberInformation withCreatedTimestamp(java.util.Date createdTimestamp) {
setCreatedTimestamp(createdTimestamp);
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 (getVerifiedDestinationNumberArn() != null)
sb.append("VerifiedDestinationNumberArn: ").append(getVerifiedDestinationNumberArn()).append(",");
if (getVerifiedDestinationNumberId() != null)
sb.append("VerifiedDestinationNumberId: ").append(getVerifiedDestinationNumberId()).append(",");
if (getDestinationPhoneNumber() != null)
sb.append("DestinationPhoneNumber: ").append(getDestinationPhoneNumber()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreatedTimestamp() != null)
sb.append("CreatedTimestamp: ").append(getCreatedTimestamp());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof VerifiedDestinationNumberInformation == false)
return false;
VerifiedDestinationNumberInformation other = (VerifiedDestinationNumberInformation) obj;
if (other.getVerifiedDestinationNumberArn() == null ^ this.getVerifiedDestinationNumberArn() == null)
return false;
if (other.getVerifiedDestinationNumberArn() != null && other.getVerifiedDestinationNumberArn().equals(this.getVerifiedDestinationNumberArn()) == false)
return false;
if (other.getVerifiedDestinationNumberId() == null ^ this.getVerifiedDestinationNumberId() == null)
return false;
if (other.getVerifiedDestinationNumberId() != null && other.getVerifiedDestinationNumberId().equals(this.getVerifiedDestinationNumberId()) == false)
return false;
if (other.getDestinationPhoneNumber() == null ^ this.getDestinationPhoneNumber() == null)
return false;
if (other.getDestinationPhoneNumber() != null && other.getDestinationPhoneNumber().equals(this.getDestinationPhoneNumber()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null)
return false;
if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVerifiedDestinationNumberArn() == null) ? 0 : getVerifiedDestinationNumberArn().hashCode());
hashCode = prime * hashCode + ((getVerifiedDestinationNumberId() == null) ? 0 : getVerifiedDestinationNumberId().hashCode());
hashCode = prime * hashCode + ((getDestinationPhoneNumber() == null) ? 0 : getDestinationPhoneNumber().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode());
return hashCode;
}
@Override
public VerifiedDestinationNumberInformation clone() {
try {
return (VerifiedDestinationNumberInformation) 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.pinpointsmsvoicev2.model.transform.VerifiedDestinationNumberInformationMarshaller.getInstance().marshall(this,
protocolMarshaller);
}
}