@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 |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateUsagePlanRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
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.
|
Map<String,String> |
getTags()
The key-value map of strings.
|
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 |
setTags(Map<String,String> tags)
The key-value map of strings.
|
void |
setThrottle(ThrottleSettings throttle)
The throttling limits of the usage plan.
|
String |
toString()
Returns a string representation of this object.
|
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 |
withTags(Map<String,String> tags)
The key-value map of strings.
|
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 Map<String,String> getTags()
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
aws:
. The tag value can be up to 256 characters.public void setTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateUsagePlanRequest withTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateUsagePlanRequest addTagsEntry(String key, String value)
public CreateUsagePlanRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateUsagePlanRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()