@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetLatestConfigurationResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetLatestConfigurationResult() |
Modifier and Type | Method and Description |
---|---|
GetLatestConfigurationResult |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getConfiguration()
The data of the configuration.
|
String |
getContentType()
A standard MIME type describing the format of the configuration content.
|
String |
getNextPollConfigurationToken()
The latest token describing the current state of the configuration session.
|
Integer |
getNextPollIntervalInSeconds()
The amount of time the client should wait before polling for configuration updates again.
|
String |
getVersionLabel()
The user-defined label for the AppConfig hosted configuration version.
|
int |
hashCode() |
void |
setConfiguration(ByteBuffer configuration)
The data of the configuration.
|
void |
setContentType(String contentType)
A standard MIME type describing the format of the configuration content.
|
void |
setNextPollConfigurationToken(String nextPollConfigurationToken)
The latest token describing the current state of the configuration session.
|
void |
setNextPollIntervalInSeconds(Integer nextPollIntervalInSeconds)
The amount of time the client should wait before polling for configuration updates again.
|
void |
setVersionLabel(String versionLabel)
The user-defined label for the AppConfig hosted configuration version.
|
String |
toString()
Returns a string representation of this object.
|
GetLatestConfigurationResult |
withConfiguration(ByteBuffer configuration)
The data of the configuration.
|
GetLatestConfigurationResult |
withContentType(String contentType)
A standard MIME type describing the format of the configuration content.
|
GetLatestConfigurationResult |
withNextPollConfigurationToken(String nextPollConfigurationToken)
The latest token describing the current state of the configuration session.
|
GetLatestConfigurationResult |
withNextPollIntervalInSeconds(Integer nextPollIntervalInSeconds)
The amount of time the client should wait before polling for configuration updates again.
|
GetLatestConfigurationResult |
withVersionLabel(String versionLabel)
The user-defined label for the AppConfig hosted configuration version.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextPollConfigurationToken(String nextPollConfigurationToken)
The latest token describing the current state of the configuration session. This must be provided to the
next call to GetLatestConfiguration.
This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a
GetLatestConfiguration
call uses an expired token, the system returns
BadRequestException
.
nextPollConfigurationToken
- The latest token describing the current state of the configuration session. This must be provided
to the next call to GetLatestConfiguration.
This token should only be used once. To support long poll use cases, the token is valid for up to 24
hours. If a GetLatestConfiguration
call uses an expired token, the system returns
BadRequestException
.
public String getNextPollConfigurationToken()
The latest token describing the current state of the configuration session. This must be provided to the
next call to GetLatestConfiguration.
This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a
GetLatestConfiguration
call uses an expired token, the system returns
BadRequestException
.
GetLatestConfiguration.
This token should only be used once. To support long poll use cases, the token is valid for up to 24
hours. If a GetLatestConfiguration
call uses an expired token, the system returns
BadRequestException
.
public GetLatestConfigurationResult withNextPollConfigurationToken(String nextPollConfigurationToken)
The latest token describing the current state of the configuration session. This must be provided to the
next call to GetLatestConfiguration.
This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a
GetLatestConfiguration
call uses an expired token, the system returns
BadRequestException
.
nextPollConfigurationToken
- The latest token describing the current state of the configuration session. This must be provided
to the next call to GetLatestConfiguration.
This token should only be used once. To support long poll use cases, the token is valid for up to 24
hours. If a GetLatestConfiguration
call uses an expired token, the system returns
BadRequestException
.
public void setNextPollIntervalInSeconds(Integer nextPollIntervalInSeconds)
The amount of time the client should wait before polling for configuration updates again. Use
RequiredMinimumPollIntervalInSeconds
to set the desired poll interval.
nextPollIntervalInSeconds
- The amount of time the client should wait before polling for configuration updates again. Use
RequiredMinimumPollIntervalInSeconds
to set the desired poll interval.public Integer getNextPollIntervalInSeconds()
The amount of time the client should wait before polling for configuration updates again. Use
RequiredMinimumPollIntervalInSeconds
to set the desired poll interval.
RequiredMinimumPollIntervalInSeconds
to set the desired poll interval.public GetLatestConfigurationResult withNextPollIntervalInSeconds(Integer nextPollIntervalInSeconds)
The amount of time the client should wait before polling for configuration updates again. Use
RequiredMinimumPollIntervalInSeconds
to set the desired poll interval.
nextPollIntervalInSeconds
- The amount of time the client should wait before polling for configuration updates again. Use
RequiredMinimumPollIntervalInSeconds
to set the desired poll interval.public void setContentType(String contentType)
A standard MIME type describing the format of the configuration content.
contentType
- A standard MIME type describing the format of the configuration content.public String getContentType()
A standard MIME type describing the format of the configuration content.
public GetLatestConfigurationResult withContentType(String contentType)
A standard MIME type describing the format of the configuration content.
contentType
- A standard MIME type describing the format of the configuration content.public void setConfiguration(ByteBuffer configuration)
The data of the configuration. This may be empty if the client already has the latest version of configuration.
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.
configuration
- The data of the configuration. This may be empty if the client already has the latest version of
configuration.public ByteBuffer getConfiguration()
The data of the configuration. This may be empty if the client already has the latest version of configuration.
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 GetLatestConfigurationResult withConfiguration(ByteBuffer configuration)
The data of the configuration. This may be empty if the client already has the latest version of configuration.
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.
configuration
- The data of the configuration. This may be empty if the client already has the latest version of
configuration.public void setVersionLabel(String versionLabel)
The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.
versionLabel
- The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the
configuration is not from an AppConfig hosted configuration version. If the client already has the latest
version of the configuration data, this value is empty.public String getVersionLabel()
The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.
public GetLatestConfigurationResult withVersionLabel(String versionLabel)
The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.
versionLabel
- The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the
configuration is not from an AppConfig hosted configuration version. If the client already has the latest
version of the configuration data, this value is empty.public String toString()
toString
in class Object
Object.toString()
public GetLatestConfigurationResult clone()