@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
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.
|
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 setBody(ByteBuffer body)
The payload of the POST request to import API keys. For the payload format, see API Key File Format.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. 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.
ByteBuffer
s 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. 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 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.ApiKeysFormat
public 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.ApiKeysFormat
public 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.ApiKeysFormat
public 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.ApiKeysFormat
public 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.ApiKeysFormat
public 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 Object
Object.toString()
public ImportApiKeysRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()