public class ImportApiKeysRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The POST request to import API keys from an external source, such as a CSV-formatted file.
NOOP| Constructor and Description |
|---|
ImportApiKeysRequest() |
| Modifier and Type | Method and Description |
|---|---|
ImportApiKeysRequest |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getBody()
The payload of the POST request to import API keys.
|
Boolean |
getFailOnWarnings()
A query parameter to indicate whether to rollback ApiKey
importation (
true) or not (false) when error is
encountered. |
String |
getFormat()
A query parameter to specify the input format to imported API keys.
|
int |
hashCode() |
Boolean |
isFailOnWarnings()
A query parameter to indicate whether to rollback ApiKey
importation (
true) or not (false) when error is
encountered. |
void |
setBody(ByteBuffer body)
The payload of the POST request to import API keys.
|
void |
setFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback ApiKey
importation (
true) or not (false) when error is
encountered. |
void |
setFormat(ApiKeysFormat format)
A query parameter to specify the input format to imported API keys.
|
void |
setFormat(String format)
A query parameter to specify the input format to imported API keys.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportApiKeysRequest |
withBody(ByteBuffer body)
The payload of the POST request to import API keys.
|
ImportApiKeysRequest |
withFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback ApiKey
importation (
true) or not (false) when error is
encountered. |
ImportApiKeysRequest |
withFormat(ApiKeysFormat format)
A query parameter to specify the input format to imported API keys.
|
ImportApiKeysRequest |
withFormat(String format)
A query parameter to specify the input format to imported API keys.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setBody(ByteBuffer body)
The payload of the POST request to import API keys. For the payload format, see API Key File Format.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
body - The payload of the POST request to import API keys. For the
payload format, see API Key File Format.public ByteBuffer getBody()
The payload of the POST request to import API keys. For the payload format, see API Key File Format.
ByteBuffers are stateful. Calling their get methods
changes their position. We recommend using
ByteBuffer.asReadOnlyBuffer() to create a read-only view
of the buffer with an independent position, and calling
get methods on this rather than directly on the returned
ByteBuffer. Doing so will ensure that anyone else using the
ByteBuffer will not be affected by changes to the position
.
public ImportApiKeysRequest withBody(ByteBuffer body)
The payload of the POST request to import API keys. For the payload format, see API Key File Format.
body - The payload of the POST request to import API keys. For the
payload format, see API Key File Format.public void setFormat(String format)
A query parameter to specify the input format to imported API keys.
Currently, only the csv format is supported.
format - A query parameter to specify the input format to imported API
keys. Currently, only the csv format is supported.ApiKeysFormatpublic String getFormat()
A query parameter to specify the input format to imported API keys.
Currently, only the csv format is supported.
csv format is supported.ApiKeysFormatpublic ImportApiKeysRequest withFormat(String format)
A query parameter to specify the input format to imported API keys.
Currently, only the csv format is supported.
format - A query parameter to specify the input format to imported API
keys. Currently, only the csv format is supported.ApiKeysFormatpublic void setFormat(ApiKeysFormat format)
A query parameter to specify the input format to imported API keys.
Currently, only the csv format is supported.
format - A query parameter to specify the input format to imported API
keys. Currently, only the csv format is supported.ApiKeysFormatpublic ImportApiKeysRequest withFormat(ApiKeysFormat format)
A query parameter to specify the input format to imported API keys.
Currently, only the csv format is supported.
format - A query parameter to specify the input format to imported API
keys. Currently, only the csv format is supported.ApiKeysFormatpublic void setFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback ApiKey
importation (true) or not (false) when error is
encountered.
failOnWarnings - A query parameter to indicate whether to rollback ApiKey
importation (true) or not (false) when
error is encountered.public Boolean getFailOnWarnings()
A query parameter to indicate whether to rollback ApiKey
importation (true) or not (false) when error is
encountered.
true) or not (false) when
error is encountered.public ImportApiKeysRequest withFailOnWarnings(Boolean failOnWarnings)
A query parameter to indicate whether to rollback ApiKey
importation (true) or not (false) when error is
encountered.
failOnWarnings - A query parameter to indicate whether to rollback ApiKey
importation (true) or not (false) when
error is encountered.public Boolean isFailOnWarnings()
A query parameter to indicate whether to rollback ApiKey
importation (true) or not (false) when error is
encountered.
true) or not (false) when
error is encountered.public String toString()
toString in class ObjectObject.toString()public ImportApiKeysRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2016. All rights reserved.