@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateUsagePlanResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
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.
Constructor and Description |
---|
UpdateUsagePlanResult() |
Modifier and Type | Method and Description |
---|---|
UpdateUsagePlanResult |
clone() |
boolean |
equals(Object obj) |
List<ApiStage> |
getApiStages()
The associated API stages of a usage plan.
|
String |
getDescription()
The description of a usage plan.
|
String |
getId()
The identifier of a UsagePlan resource.
|
String |
getName()
The name of a usage plan.
|
String |
getProductCode()
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
|
QuotaSettings |
getQuota()
The maximum number of permitted requests per a given unit time interval.
|
ThrottleSettings |
getThrottle()
The request throttle limits of a usage plan.
|
int |
hashCode() |
void |
setApiStages(Collection<ApiStage> apiStages)
The associated API stages of a usage plan.
|
void |
setDescription(String description)
The description of a usage plan.
|
void |
setId(String id)
The identifier of a UsagePlan resource.
|
void |
setName(String name)
The name of a usage plan.
|
void |
setProductCode(String productCode)
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
|
void |
setQuota(QuotaSettings quota)
The maximum number of permitted requests per a given unit time interval.
|
void |
setThrottle(ThrottleSettings throttle)
The request throttle limits of a usage plan.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UpdateUsagePlanResult |
withApiStages(ApiStage... apiStages)
The associated API stages of a usage plan.
|
UpdateUsagePlanResult |
withApiStages(Collection<ApiStage> apiStages)
The associated API stages of a usage plan.
|
UpdateUsagePlanResult |
withDescription(String description)
The description of a usage plan.
|
UpdateUsagePlanResult |
withId(String id)
The identifier of a UsagePlan resource.
|
UpdateUsagePlanResult |
withName(String name)
The name of a usage plan.
|
UpdateUsagePlanResult |
withProductCode(String productCode)
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
|
UpdateUsagePlanResult |
withQuota(QuotaSettings quota)
The maximum number of permitted requests per a given unit time interval.
|
UpdateUsagePlanResult |
withThrottle(ThrottleSettings throttle)
The request throttle limits of a usage plan.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setId(String id)
The identifier of a UsagePlan resource.
id
- The identifier of a UsagePlan resource.public String getId()
The identifier of a UsagePlan resource.
public UpdateUsagePlanResult withId(String id)
The identifier of a UsagePlan resource.
id
- The identifier of a UsagePlan resource.public void setName(String name)
The name of a usage plan.
name
- The name of a usage plan.public String getName()
The name of a usage plan.
public UpdateUsagePlanResult withName(String name)
The name of a usage plan.
name
- The name of a usage plan.public void setDescription(String description)
The description of a usage plan.
description
- The description of a usage plan.public String getDescription()
The description of a usage plan.
public UpdateUsagePlanResult withDescription(String description)
The description of a usage plan.
description
- The description of a usage plan.public List<ApiStage> getApiStages()
The associated API stages of a usage plan.
public void setApiStages(Collection<ApiStage> apiStages)
The associated API stages of a usage plan.
apiStages
- The associated API stages of a usage plan.public UpdateUsagePlanResult withApiStages(ApiStage... apiStages)
The associated API stages of a 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 a usage plan.public UpdateUsagePlanResult withApiStages(Collection<ApiStage> apiStages)
The associated API stages of a usage plan.
apiStages
- The associated API stages of a usage plan.public void setThrottle(ThrottleSettings throttle)
The request throttle limits of a usage plan.
throttle
- The request throttle limits of a usage plan.public ThrottleSettings getThrottle()
The request throttle limits of a usage plan.
public UpdateUsagePlanResult withThrottle(ThrottleSettings throttle)
The request throttle limits of a usage plan.
throttle
- The request throttle limits of a usage plan.public void setQuota(QuotaSettings quota)
The maximum number of permitted requests per a given unit time interval.
quota
- The maximum number of permitted requests per a given unit time interval.public QuotaSettings getQuota()
The maximum number of permitted requests per a given unit time interval.
public UpdateUsagePlanResult withQuota(QuotaSettings quota)
The maximum number of permitted requests per a given unit time interval.
quota
- The maximum number of permitted requests per a given unit time interval.public void setProductCode(String productCode)
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
productCode
- The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS
Marketplace.public String getProductCode()
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
public UpdateUsagePlanResult withProductCode(String productCode)
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
productCode
- The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS
Marketplace.public String toString()
toString
in class Object
Object.toString()
public UpdateUsagePlanResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.