public class CheckIfPhoneNumberIsOptedOutRequest extends AmazonWebServiceRequest implements java.io.Serializable
Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your account. You cannot send SMS messages to a number that is opted out.
To resume sending messages, you can opt in the number by using the
OptInPhoneNumber
action.
Constructor and Description |
---|
CheckIfPhoneNumberIsOptedOutRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPhoneNumber()
The phone number for which you want to check the opt out status.
|
int |
hashCode() |
void |
setPhoneNumber(java.lang.String phoneNumber)
The phone number for which you want to check the opt out status.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CheckIfPhoneNumberIsOptedOutRequest |
withPhoneNumber(java.lang.String phoneNumber)
The phone number for which you want to check the opt out status.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getPhoneNumber()
The phone number for which you want to check the opt out status.
The phone number for which you want to check the opt out status.
public void setPhoneNumber(java.lang.String phoneNumber)
The phone number for which you want to check the opt out status.
phoneNumber
- The phone number for which you want to check the opt out status.
public CheckIfPhoneNumberIsOptedOutRequest withPhoneNumber(java.lang.String phoneNumber)
The phone number for which you want to check the opt out status.
Returns a reference to this object so that method calls can be chained together.
phoneNumber
- The phone number for which you want to check the opt out status.
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.