public class OptInPhoneNumberRequest extends AmazonWebServiceRequest implements java.io.Serializable
Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number.
You can opt in a phone number only once every 30 days.
Constructor and Description |
---|
OptInPhoneNumberRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPhoneNumber()
The phone number to opt in.
|
int |
hashCode() |
void |
setPhoneNumber(java.lang.String phoneNumber)
The phone number to opt in.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
OptInPhoneNumberRequest |
withPhoneNumber(java.lang.String phoneNumber)
The phone number to opt in.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getPhoneNumber()
The phone number to opt in.
The phone number to opt in.
public void setPhoneNumber(java.lang.String phoneNumber)
The phone number to opt in.
phoneNumber
- The phone number to opt in.
public OptInPhoneNumberRequest withPhoneNumber(java.lang.String phoneNumber)
The phone number to opt in.
Returns a reference to this object so that method calls can be chained together.
phoneNumber
- The phone number to opt in.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.