@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsagePlanKey extends Object implements Serializable, Cloneable, StructuredPojo
Represents a usage plan key to identify a plan customer.
To associate an API stage with a selected API key in a usage plan, you must create a UsagePlanKey resource to represent the selected ApiKey.
Constructor and Description |
---|
UsagePlanKey() |
Modifier and Type | Method and Description |
---|---|
UsagePlanKey |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The Id of a usage plan key.
|
String |
getName()
The name of a usage plan key.
|
String |
getType()
The type of a usage plan key.
|
String |
getValue()
The value of a usage plan key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The Id of a usage plan key.
|
void |
setName(String name)
The name of a usage plan key.
|
void |
setType(String type)
The type of a usage plan key.
|
void |
setValue(String value)
The value of a usage plan key.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UsagePlanKey |
withId(String id)
The Id of a usage plan key.
|
UsagePlanKey |
withName(String name)
The name of a usage plan key.
|
UsagePlanKey |
withType(String type)
The type of a usage plan key.
|
UsagePlanKey |
withValue(String value)
The value of a usage plan key.
|
public void setId(String id)
The Id of a usage plan key.
id
- The Id of a usage plan key.public String getId()
The Id of a usage plan key.
public UsagePlanKey withId(String id)
The Id of a usage plan key.
id
- The Id of a usage plan key.public void setType(String type)
The type of a usage plan key. Currently, the valid key type is API_KEY
.
type
- The type of a usage plan key. Currently, the valid key type is API_KEY
.public String getType()
The type of a usage plan key. Currently, the valid key type is API_KEY
.
API_KEY
.public UsagePlanKey withType(String type)
The type of a usage plan key. Currently, the valid key type is API_KEY
.
type
- The type of a usage plan key. Currently, the valid key type is API_KEY
.public void setValue(String value)
The value of a usage plan key.
value
- The value of a usage plan key.public String getValue()
The value of a usage plan key.
public UsagePlanKey withValue(String value)
The value of a usage plan key.
value
- The value of a usage plan key.public void setName(String name)
The name of a usage plan key.
name
- The name of a usage plan key.public String getName()
The name of a usage plan key.
public UsagePlanKey withName(String name)
The name of a usage plan key.
name
- The name of a usage plan key.public String toString()
toString
in class Object
Object.toString()
public UsagePlanKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.