@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThroughputConfig extends Object implements Serializable, Cloneable, StructuredPojo
Used to set feature group throughput configuration. There are two modes: ON_DEMAND
and
PROVISIONED
. With on-demand mode, you are charged for data reads and writes that your application
performs on your feature group. You do not need to specify read and write throughput because Feature Store
accommodates your workloads as they ramp up and down. You can switch a feature group to on-demand only once in a 24
hour period. With provisioned throughput mode, you specify the read and write capacity per second that you expect
your application to require, and you are billed based on those limits. Exceeding provisioned throughput will result
in your requests being throttled.
Note: PROVISIONED
throughput mode is supported only for feature groups that are offline-only, or use the
Standard
tier online store.
Constructor and Description |
---|
ThroughputConfig() |
Modifier and Type | Method and Description |
---|---|
ThroughputConfig |
clone() |
boolean |
equals(Object obj) |
Integer |
getProvisionedReadCapacityUnits()
For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for
and can consume without throttling.
|
Integer |
getProvisionedWriteCapacityUnits()
For provisioned feature groups, this indicates the write throughput you are billed for and can consume without
throttling.
|
String |
getThroughputMode()
The mode used for your feature group throughput:
ON_DEMAND or PROVISIONED . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setProvisionedReadCapacityUnits(Integer provisionedReadCapacityUnits)
For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for
and can consume without throttling.
|
void |
setProvisionedWriteCapacityUnits(Integer provisionedWriteCapacityUnits)
For provisioned feature groups, this indicates the write throughput you are billed for and can consume without
throttling.
|
void |
setThroughputMode(String throughputMode)
The mode used for your feature group throughput:
ON_DEMAND or PROVISIONED . |
String |
toString()
Returns a string representation of this object.
|
ThroughputConfig |
withProvisionedReadCapacityUnits(Integer provisionedReadCapacityUnits)
For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for
and can consume without throttling.
|
ThroughputConfig |
withProvisionedWriteCapacityUnits(Integer provisionedWriteCapacityUnits)
For provisioned feature groups, this indicates the write throughput you are billed for and can consume without
throttling.
|
ThroughputConfig |
withThroughputMode(String throughputMode)
The mode used for your feature group throughput:
ON_DEMAND or PROVISIONED . |
ThroughputConfig |
withThroughputMode(ThroughputMode throughputMode)
The mode used for your feature group throughput:
ON_DEMAND or PROVISIONED . |
public void setThroughputMode(String throughputMode)
The mode used for your feature group throughput: ON_DEMAND
or PROVISIONED
.
throughputMode
- The mode used for your feature group throughput: ON_DEMAND
or PROVISIONED
.ThroughputMode
public String getThroughputMode()
The mode used for your feature group throughput: ON_DEMAND
or PROVISIONED
.
ON_DEMAND
or PROVISIONED
.ThroughputMode
public ThroughputConfig withThroughputMode(String throughputMode)
The mode used for your feature group throughput: ON_DEMAND
or PROVISIONED
.
throughputMode
- The mode used for your feature group throughput: ON_DEMAND
or PROVISIONED
.ThroughputMode
public ThroughputConfig withThroughputMode(ThroughputMode throughputMode)
The mode used for your feature group throughput: ON_DEMAND
or PROVISIONED
.
throughputMode
- The mode used for your feature group throughput: ON_DEMAND
or PROVISIONED
.ThroughputMode
public void setProvisionedReadCapacityUnits(Integer provisionedReadCapacityUnits)
For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
provisionedReadCapacityUnits
- For provisioned feature groups with online store enabled, this indicates the read throughput you are
billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
public Integer getProvisionedReadCapacityUnits()
For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
This field is not applicable for on-demand feature groups.
public ThroughputConfig withProvisionedReadCapacityUnits(Integer provisionedReadCapacityUnits)
For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
provisionedReadCapacityUnits
- For provisioned feature groups with online store enabled, this indicates the read throughput you are
billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
public void setProvisionedWriteCapacityUnits(Integer provisionedWriteCapacityUnits)
For provisioned feature groups, this indicates the write throughput you are billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
provisionedWriteCapacityUnits
- For provisioned feature groups, this indicates the write throughput you are billed for and can consume
without throttling.
This field is not applicable for on-demand feature groups.
public Integer getProvisionedWriteCapacityUnits()
For provisioned feature groups, this indicates the write throughput you are billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
This field is not applicable for on-demand feature groups.
public ThroughputConfig withProvisionedWriteCapacityUnits(Integer provisionedWriteCapacityUnits)
For provisioned feature groups, this indicates the write throughput you are billed for and can consume without throttling.
This field is not applicable for on-demand feature groups.
provisionedWriteCapacityUnits
- For provisioned feature groups, this indicates the write throughput you are billed for and can consume
without throttling.
This field is not applicable for on-demand feature groups.
public String toString()
toString
in class Object
Object.toString()
public ThroughputConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.