@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchAvailablePhoneNumbersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SearchAvailablePhoneNumbersRequest() |
Modifier and Type | Method and Description |
---|---|
SearchAvailablePhoneNumbersRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAreaCode()
The area code used to filter results.
|
String |
getCity()
The city used to filter results.
|
String |
getCountry()
The country used to filter results.
|
Integer |
getMaxResults()
The maximum number of results to return in a single call.
|
String |
getNextToken()
The token used to retrieve the next page of results.
|
String |
getPhoneNumberType()
The phone number type used to filter results.
|
String |
getState()
The state used to filter results.
|
String |
getTollFreePrefix()
The toll-free prefix that you use to filter results.
|
int |
hashCode() |
void |
setAreaCode(String areaCode)
The area code used to filter results.
|
void |
setCity(String city)
The city used to filter results.
|
void |
setCountry(String country)
The country used to filter results.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return in a single call.
|
void |
setNextToken(String nextToken)
The token used to retrieve the next page of results.
|
void |
setPhoneNumberType(String phoneNumberType)
The phone number type used to filter results.
|
void |
setState(String state)
The state used to filter results.
|
void |
setTollFreePrefix(String tollFreePrefix)
The toll-free prefix that you use to filter results.
|
String |
toString()
Returns a string representation of this object.
|
SearchAvailablePhoneNumbersRequest |
withAreaCode(String areaCode)
The area code used to filter results.
|
SearchAvailablePhoneNumbersRequest |
withCity(String city)
The city used to filter results.
|
SearchAvailablePhoneNumbersRequest |
withCountry(String country)
The country used to filter results.
|
SearchAvailablePhoneNumbersRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return in a single call.
|
SearchAvailablePhoneNumbersRequest |
withNextToken(String nextToken)
The token used to retrieve the next page of results.
|
SearchAvailablePhoneNumbersRequest |
withPhoneNumberType(PhoneNumberType phoneNumberType)
The phone number type used to filter results.
|
SearchAvailablePhoneNumbersRequest |
withPhoneNumberType(String phoneNumberType)
The phone number type used to filter results.
|
SearchAvailablePhoneNumbersRequest |
withState(String state)
The state used to filter results.
|
SearchAvailablePhoneNumbersRequest |
withTollFreePrefix(String tollFreePrefix)
The toll-free prefix that you use to filter results.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAreaCode(String areaCode)
The area code used to filter results. Only applies to the US.
areaCode
- The area code used to filter results. Only applies to the US.public String getAreaCode()
The area code used to filter results. Only applies to the US.
public SearchAvailablePhoneNumbersRequest withAreaCode(String areaCode)
The area code used to filter results. Only applies to the US.
areaCode
- The area code used to filter results. Only applies to the US.public void setCity(String city)
The city used to filter results. Only applies to the US.
city
- The city used to filter results. Only applies to the US.public String getCity()
The city used to filter results. Only applies to the US.
public SearchAvailablePhoneNumbersRequest withCity(String city)
The city used to filter results. Only applies to the US.
city
- The city used to filter results. Only applies to the US.public void setCountry(String country)
The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.
country
- The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.public String getCountry()
The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.
public SearchAvailablePhoneNumbersRequest withCountry(String country)
The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.
country
- The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.public void setState(String state)
The state used to filter results. Required only if you provide City
. Only applies to the US.
state
- The state used to filter results. Required only if you provide City
. Only applies to the US.public String getState()
The state used to filter results. Required only if you provide City
. Only applies to the US.
City
. Only applies to the US.public SearchAvailablePhoneNumbersRequest withState(String state)
The state used to filter results. Required only if you provide City
. Only applies to the US.
state
- The state used to filter results. Required only if you provide City
. Only applies to the US.public void setTollFreePrefix(String tollFreePrefix)
The toll-free prefix that you use to filter results. Only applies to the US.
tollFreePrefix
- The toll-free prefix that you use to filter results. Only applies to the US.public String getTollFreePrefix()
The toll-free prefix that you use to filter results. Only applies to the US.
public SearchAvailablePhoneNumbersRequest withTollFreePrefix(String tollFreePrefix)
The toll-free prefix that you use to filter results. Only applies to the US.
tollFreePrefix
- The toll-free prefix that you use to filter results. Only applies to the US.public void setPhoneNumberType(String phoneNumberType)
The phone number type used to filter results. Required for non-US numbers.
phoneNumberType
- The phone number type used to filter results. Required for non-US numbers.PhoneNumberType
public String getPhoneNumberType()
The phone number type used to filter results. Required for non-US numbers.
PhoneNumberType
public SearchAvailablePhoneNumbersRequest withPhoneNumberType(String phoneNumberType)
The phone number type used to filter results. Required for non-US numbers.
phoneNumberType
- The phone number type used to filter results. Required for non-US numbers.PhoneNumberType
public SearchAvailablePhoneNumbersRequest withPhoneNumberType(PhoneNumberType phoneNumberType)
The phone number type used to filter results. Required for non-US numbers.
phoneNumberType
- The phone number type used to filter results. Required for non-US numbers.PhoneNumberType
public void setMaxResults(Integer maxResults)
The maximum number of results to return in a single call.
maxResults
- The maximum number of results to return in a single call.public Integer getMaxResults()
The maximum number of results to return in a single call.
public SearchAvailablePhoneNumbersRequest withMaxResults(Integer maxResults)
The maximum number of results to return in a single call.
maxResults
- The maximum number of results to return in a single call.public void setNextToken(String nextToken)
The token used to retrieve the next page of results.
nextToken
- The token used to retrieve the next page of results.public String getNextToken()
The token used to retrieve the next page of results.
public SearchAvailablePhoneNumbersRequest withNextToken(String nextToken)
The token used to retrieve the next page of results.
nextToken
- The token used to retrieve the next page of results.public String toString()
toString
in class Object
Object.toString()
public SearchAvailablePhoneNumbersRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()