@Generated(value="software.amazon.awssdk:codegen") public class UpdateDataRetentionRequest extends KinesisVideoRequest implements ToCopyableBuilder<UpdateDataRetentionRequest.Builder,UpdateDataRetentionRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateDataRetentionRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UpdateDataRetentionRequest.Builder |
builder() |
String |
currentVersion()
The version of the stream whose retention period you want to change.
|
Integer |
dataRetentionChangeInHours()
The retention period, in hours.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest. |
int |
hashCode() |
UpdateDataRetentionOperation |
operation()
Indicates whether you want to increase or decrease the retention period.
|
String |
operationAsString()
Indicates whether you want to increase or decrease the retention period.
|
static Class<? extends UpdateDataRetentionRequest.Builder> |
serializableBuilderClass() |
String |
streamARN()
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
|
String |
streamName()
The name of the stream whose retention period you want to change.
|
UpdateDataRetentionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfigcopypublic String streamName()
The name of the stream whose retention period you want to change.
public String streamARN()
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
public String currentVersion()
The version of the stream whose retention period you want to change. To get the version, call either the
DescribeStream or the ListStreams API.
DescribeStream or the ListStreams API.public UpdateDataRetentionOperation operation()
Indicates whether you want to increase or decrease the retention period.
If the service returns an enum value that is not available in the current SDK version, operation will
return UpdateDataRetentionOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from operationAsString().
UpdateDataRetentionOperationpublic String operationAsString()
Indicates whether you want to increase or decrease the retention period.
If the service returns an enum value that is not available in the current SDK version, operation will
return UpdateDataRetentionOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from operationAsString().
UpdateDataRetentionOperationpublic Integer dataRetentionChangeInHours()
The retention period, in hours. The value you specify replaces the current value.
public UpdateDataRetentionRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<UpdateDataRetentionRequest.Builder,UpdateDataRetentionRequest>toBuilder in class KinesisVideoRequestpublic static UpdateDataRetentionRequest.Builder builder()
public static Class<? extends UpdateDataRetentionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequestSdkRequest. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class) method will
again be available.getValueForField in class SdkRequestfieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.