@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CachePolicySummary extends Object implements Serializable, Cloneable
Contains a cache policy.
Constructor and Description |
---|
CachePolicySummary() |
Modifier and Type | Method and Description |
---|---|
CachePolicySummary |
clone() |
boolean |
equals(Object obj) |
CachePolicy |
getCachePolicy()
The cache policy.
|
String |
getType()
The type of cache policy, either
managed (created by AWS) or custom (created in this
AWS account). |
int |
hashCode() |
void |
setCachePolicy(CachePolicy cachePolicy)
The cache policy.
|
void |
setType(String type)
The type of cache policy, either
managed (created by AWS) or custom (created in this
AWS account). |
String |
toString()
Returns a string representation of this object.
|
CachePolicySummary |
withCachePolicy(CachePolicy cachePolicy)
The cache policy.
|
CachePolicySummary |
withType(CachePolicyType type)
The type of cache policy, either
managed (created by AWS) or custom (created in this
AWS account). |
CachePolicySummary |
withType(String type)
The type of cache policy, either
managed (created by AWS) or custom (created in this
AWS account). |
public void setType(String type)
The type of cache policy, either managed
(created by AWS) or custom
(created in this
AWS account).
type
- The type of cache policy, either managed
(created by AWS) or custom
(created in
this AWS account).CachePolicyType
public String getType()
The type of cache policy, either managed
(created by AWS) or custom
(created in this
AWS account).
managed
(created by AWS) or custom
(created in
this AWS account).CachePolicyType
public CachePolicySummary withType(String type)
The type of cache policy, either managed
(created by AWS) or custom
(created in this
AWS account).
type
- The type of cache policy, either managed
(created by AWS) or custom
(created in
this AWS account).CachePolicyType
public CachePolicySummary withType(CachePolicyType type)
The type of cache policy, either managed
(created by AWS) or custom
(created in this
AWS account).
type
- The type of cache policy, either managed
(created by AWS) or custom
(created in
this AWS account).CachePolicyType
public void setCachePolicy(CachePolicy cachePolicy)
The cache policy.
cachePolicy
- The cache policy.public CachePolicy getCachePolicy()
The cache policy.
public CachePolicySummary withCachePolicy(CachePolicy cachePolicy)
The cache policy.
cachePolicy
- The cache policy.public String toString()
toString
in class Object
Object.toString()
public CachePolicySummary clone()