@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyGroupConfig extends Object implements Serializable, Cloneable
A key group configuration.
A key group contains a list of public keys that you can use with CloudFront signed URLs and signed cookies.
| Constructor and Description |
|---|
KeyGroupConfig() |
| Modifier and Type | Method and Description |
|---|---|
KeyGroupConfig |
clone() |
boolean |
equals(Object obj) |
String |
getComment()
A comment to describe the key group.
|
List<String> |
getItems()
A list of the identifiers of the public keys in the key group.
|
String |
getName()
A name to identify the key group.
|
int |
hashCode() |
void |
setComment(String comment)
A comment to describe the key group.
|
void |
setItems(Collection<String> items)
A list of the identifiers of the public keys in the key group.
|
void |
setName(String name)
A name to identify the key group.
|
String |
toString()
Returns a string representation of this object.
|
KeyGroupConfig |
withComment(String comment)
A comment to describe the key group.
|
KeyGroupConfig |
withItems(Collection<String> items)
A list of the identifiers of the public keys in the key group.
|
KeyGroupConfig |
withItems(String... items)
A list of the identifiers of the public keys in the key group.
|
KeyGroupConfig |
withName(String name)
A name to identify the key group.
|
public void setName(String name)
A name to identify the key group.
name - A name to identify the key group.public String getName()
A name to identify the key group.
public KeyGroupConfig withName(String name)
A name to identify the key group.
name - A name to identify the key group.public List<String> getItems()
A list of the identifiers of the public keys in the key group.
public void setItems(Collection<String> items)
A list of the identifiers of the public keys in the key group.
items - A list of the identifiers of the public keys in the key group.public KeyGroupConfig withItems(String... items)
A list of the identifiers of the public keys in the key group.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection) or withItems(java.util.Collection) if you want to override the
existing values.
items - A list of the identifiers of the public keys in the key group.public KeyGroupConfig withItems(Collection<String> items)
A list of the identifiers of the public keys in the key group.
items - A list of the identifiers of the public keys in the key group.public void setComment(String comment)
A comment to describe the key group. The comment cannot be longer than 128 characters.
comment - A comment to describe the key group. The comment cannot be longer than 128 characters.public String getComment()
A comment to describe the key group. The comment cannot be longer than 128 characters.
public KeyGroupConfig withComment(String comment)
A comment to describe the key group. The comment cannot be longer than 128 characters.
comment - A comment to describe the key group. The comment cannot be longer than 128 characters.public String toString()
toString in class ObjectObject.toString()public KeyGroupConfig clone()