@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OriginRequestPolicySummary extends Object implements Serializable, Cloneable
Contains an origin request policy.
Constructor and Description |
---|
OriginRequestPolicySummary() |
Modifier and Type | Method and Description |
---|---|
OriginRequestPolicySummary |
clone() |
boolean |
equals(Object obj) |
OriginRequestPolicy |
getOriginRequestPolicy()
The origin request policy.
|
String |
getType()
The type of origin request policy, either
managed (created by Amazon Web Services) or
custom (created in this account). |
int |
hashCode() |
void |
setOriginRequestPolicy(OriginRequestPolicy originRequestPolicy)
The origin request policy.
|
void |
setType(String type)
The type of origin request policy, either
managed (created by Amazon Web Services) or
custom (created in this account). |
String |
toString()
Returns a string representation of this object.
|
OriginRequestPolicySummary |
withOriginRequestPolicy(OriginRequestPolicy originRequestPolicy)
The origin request policy.
|
OriginRequestPolicySummary |
withType(OriginRequestPolicyType type)
The type of origin request policy, either
managed (created by Amazon Web Services) or
custom (created in this account). |
OriginRequestPolicySummary |
withType(String type)
The type of origin request policy, either
managed (created by Amazon Web Services) or
custom (created in this account). |
public void setType(String type)
The type of origin request policy, either managed
(created by Amazon Web Services) or
custom
(created in this account).
type
- The type of origin request policy, either managed
(created by Amazon Web Services) or
custom
(created in this account).OriginRequestPolicyType
public String getType()
The type of origin request policy, either managed
(created by Amazon Web Services) or
custom
(created in this account).
managed
(created by Amazon Web Services) or
custom
(created in this account).OriginRequestPolicyType
public OriginRequestPolicySummary withType(String type)
The type of origin request policy, either managed
(created by Amazon Web Services) or
custom
(created in this account).
type
- The type of origin request policy, either managed
(created by Amazon Web Services) or
custom
(created in this account).OriginRequestPolicyType
public OriginRequestPolicySummary withType(OriginRequestPolicyType type)
The type of origin request policy, either managed
(created by Amazon Web Services) or
custom
(created in this account).
type
- The type of origin request policy, either managed
(created by Amazon Web Services) or
custom
(created in this account).OriginRequestPolicyType
public void setOriginRequestPolicy(OriginRequestPolicy originRequestPolicy)
The origin request policy.
originRequestPolicy
- The origin request policy.public OriginRequestPolicy getOriginRequestPolicy()
The origin request policy.
public OriginRequestPolicySummary withOriginRequestPolicy(OriginRequestPolicy originRequestPolicy)
The origin request policy.
originRequestPolicy
- The origin request policy.public String toString()
toString
in class Object
Object.toString()
public OriginRequestPolicySummary clone()