StructuredPojo
, ToCopyableBuilder<UsagePlan.Builder,UsagePlan>
@Generated("software.amazon.awssdk:codegen") public class UsagePlan extends Object implements StructuredPojo, ToCopyableBuilder<UsagePlan.Builder,UsagePlan>
Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.
In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.
Modifier and Type | Class | Description |
---|---|---|
static interface |
UsagePlan.Builder |
Modifier and Type | Method | Description |
---|---|---|
List<ApiStage> |
apiStages() |
The associated API stages of a usage plan.
|
static UsagePlan.Builder |
builder() |
|
String |
description() |
The description of a usage plan.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
id() |
The identifier of a UsagePlan resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name() |
The name of a usage plan.
|
String |
productCode() |
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
|
QuotaSettings |
quota() |
The maximum number of permitted requests per a given unit time interval.
|
static Class<? extends UsagePlan.Builder> |
serializableBuilderClass() |
|
ThrottleSettings |
throttle() |
The request throttle limits of a usage plan.
|
UsagePlan.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public String id()
The identifier of a UsagePlan resource.
public String name()
The name of a usage plan.
public String description()
The description of a usage plan.
public List<ApiStage> apiStages()
The associated API stages of a usage plan.
public ThrottleSettings throttle()
The request throttle limits of a usage plan.
public QuotaSettings quota()
The maximum number of permitted requests per a given unit time interval.
public String productCode()
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
public UsagePlan.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UsagePlan.Builder,UsagePlan>
public static UsagePlan.Builder builder()
public static Class<? extends UsagePlan.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.