/* * 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.sns.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* A list of phone numbers and their metadata. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumberInformation implements Serializable, Cloneable { /** ** The date and time when the phone number was created. *
*/ private java.util.Date createdAt; /** ** The phone number. *
*/ private String phoneNumber; /** ** The status of the phone number. *
*/ private String status; /** ** The two-character code for the country or region, in ISO 3166-1 alpha-2 format. *
*/ private String iso2CountryCode; /** ** The list of supported routes. *
*/ private String routeType; /** ** The capabilities of each phone number. *
*/ private com.amazonaws.internal.SdkInternalList* The date and time when the phone number was created. *
* * @param createdAt * The date and time when the phone number was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The date and time when the phone number was created. *
* * @return The date and time when the phone number was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The date and time when the phone number was created. *
* * @param createdAt * The date and time when the phone number was created. * @return Returns a reference to this object so that method calls can be chained together. */ public PhoneNumberInformation withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The phone number. *
* * @param phoneNumber * The phone number. */ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } /** ** The phone number. *
* * @return The phone number. */ public String getPhoneNumber() { return this.phoneNumber; } /** ** The phone number. *
* * @param phoneNumber * The phone number. * @return Returns a reference to this object so that method calls can be chained together. */ public PhoneNumberInformation withPhoneNumber(String phoneNumber) { setPhoneNumber(phoneNumber); return this; } /** ** The status of the phone number. *
* * @param status * The status of the phone number. */ public void setStatus(String status) { this.status = status; } /** ** The status of the phone number. *
* * @return The status of the phone number. */ public String getStatus() { return this.status; } /** ** The status of the phone number. *
* * @param status * The status of the phone number. * @return Returns a reference to this object so that method calls can be chained together. */ public PhoneNumberInformation withStatus(String status) { setStatus(status); return this; } /** ** The two-character code for the country or region, in ISO 3166-1 alpha-2 format. *
* * @param iso2CountryCode * The two-character code for the country or region, in ISO 3166-1 alpha-2 format. */ public void setIso2CountryCode(String iso2CountryCode) { this.iso2CountryCode = iso2CountryCode; } /** ** The two-character code for the country or region, in ISO 3166-1 alpha-2 format. *
* * @return The two-character code for the country or region, in ISO 3166-1 alpha-2 format. */ public String getIso2CountryCode() { return this.iso2CountryCode; } /** ** The two-character code for the country or region, in ISO 3166-1 alpha-2 format. *
* * @param iso2CountryCode * The two-character code for the country or region, in ISO 3166-1 alpha-2 format. * @return Returns a reference to this object so that method calls can be chained together. */ public PhoneNumberInformation withIso2CountryCode(String iso2CountryCode) { setIso2CountryCode(iso2CountryCode); return this; } /** ** The list of supported routes. *
* * @param routeType * The list of supported routes. * @see RouteType */ public void setRouteType(String routeType) { this.routeType = routeType; } /** ** The list of supported routes. *
* * @return The list of supported routes. * @see RouteType */ public String getRouteType() { return this.routeType; } /** ** The list of supported routes. *
* * @param routeType * The list of supported routes. * @return Returns a reference to this object so that method calls can be chained together. * @see RouteType */ public PhoneNumberInformation withRouteType(String routeType) { setRouteType(routeType); return this; } /** ** The list of supported routes. *
* * @param routeType * The list of supported routes. * @return Returns a reference to this object so that method calls can be chained together. * @see RouteType */ public PhoneNumberInformation withRouteType(RouteType routeType) { this.routeType = routeType.toString(); return this; } /** ** The capabilities of each phone number. *
* * @return The capabilities of each phone number. * @see NumberCapability */ public java.util.List* The capabilities of each phone number. *
* * @param numberCapabilities * The capabilities of each phone number. * @see NumberCapability */ public void setNumberCapabilities(java.util.Collection* The capabilities of each phone number. *
** 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 * The capabilities of each phone number. * @return Returns a reference to this object so that method calls can be chained together. * @see NumberCapability */ public PhoneNumberInformation withNumberCapabilities(String... numberCapabilities) { if (this.numberCapabilities == null) { setNumberCapabilities(new com.amazonaws.internal.SdkInternalList* The capabilities of each phone number. *
* * @param numberCapabilities * The capabilities of each phone number. * @return Returns a reference to this object so that method calls can be chained together. * @see NumberCapability */ public PhoneNumberInformation withNumberCapabilities(java.util.Collection* The capabilities of each phone number. *
* * @param numberCapabilities * The capabilities of each phone number. * @return Returns a reference to this object so that method calls can be chained together. * @see NumberCapability */ public PhoneNumberInformation withNumberCapabilities(NumberCapability... numberCapabilities) { com.amazonaws.internal.SdkInternalList