@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateUsagePlanRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The POST request to create a usage plan with the name, description, throttle limits and quota limits, as well as the associated API stages, specified in the payload.
NOOP
Constructor and Description |
---|
CreateUsagePlanRequest() |
Modifier and Type | Method and Description |
---|---|
CreateUsagePlanRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<ApiStage> |
getApiStages()
The associated API stages of the usage plan.
|
String |
getDescription()
The description of the usage plan.
|
String |
getName()
The name of the usage plan.
|
QuotaSettings |
getQuota()
The quota of the usage plan.
|
ThrottleSettings |
getThrottle()
The throttling limits of the usage plan.
|
int |
hashCode() |
void |
setApiStages(Collection<ApiStage> apiStages)
The associated API stages of the usage plan.
|
void |
setDescription(String description)
The description of the usage plan.
|
void |
setName(String name)
The name of the usage plan.
|
void |
setQuota(QuotaSettings quota)
The quota of the usage plan.
|
void |
setThrottle(ThrottleSettings throttle)
The throttling limits of the usage plan.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateUsagePlanRequest |
withApiStages(ApiStage... apiStages)
The associated API stages of the usage plan.
|
CreateUsagePlanRequest |
withApiStages(Collection<ApiStage> apiStages)
The associated API stages of the usage plan.
|
CreateUsagePlanRequest |
withDescription(String description)
The description of the usage plan.
|
CreateUsagePlanRequest |
withName(String name)
The name of the usage plan.
|
CreateUsagePlanRequest |
withQuota(QuotaSettings quota)
The quota of the usage plan.
|
CreateUsagePlanRequest |
withThrottle(ThrottleSettings throttle)
The throttling limits of the usage plan.
|
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 setName(String name)
The name of the usage plan.
name
- The name of the usage plan.public String getName()
The name of the usage plan.
public CreateUsagePlanRequest withName(String name)
The name of the usage plan.
name
- The name of the usage plan.public void setDescription(String description)
The description of the usage plan.
description
- The description of the usage plan.public String getDescription()
The description of the usage plan.
public CreateUsagePlanRequest withDescription(String description)
The description of the usage plan.
description
- The description of the usage plan.public List<ApiStage> getApiStages()
The associated API stages of the usage plan.
public void setApiStages(Collection<ApiStage> apiStages)
The associated API stages of the usage plan.
apiStages
- The associated API stages of the usage plan.public CreateUsagePlanRequest withApiStages(ApiStage... apiStages)
The associated API stages of the usage plan.
NOTE: This method appends the values to the existing list (if any). Use
setApiStages(java.util.Collection)
or withApiStages(java.util.Collection)
if you want to
override the existing values.
apiStages
- The associated API stages of the usage plan.public CreateUsagePlanRequest withApiStages(Collection<ApiStage> apiStages)
The associated API stages of the usage plan.
apiStages
- The associated API stages of the usage plan.public void setThrottle(ThrottleSettings throttle)
The throttling limits of the usage plan.
throttle
- The throttling limits of the usage plan.public ThrottleSettings getThrottle()
The throttling limits of the usage plan.
public CreateUsagePlanRequest withThrottle(ThrottleSettings throttle)
The throttling limits of the usage plan.
throttle
- The throttling limits of the usage plan.public void setQuota(QuotaSettings quota)
The quota of the usage plan.
quota
- The quota of the usage plan.public QuotaSettings getQuota()
The quota of the usage plan.
public CreateUsagePlanRequest withQuota(QuotaSettings quota)
The quota of the usage plan.
quota
- The quota of the usage plan.public String toString()
toString
in class Object
Object.toString()
public CreateUsagePlanRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.