public class CloudFrontOriginAccessIdentityConfig
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
callerReference
A unique number that ensures the request can't be replayed.
|
private java.lang.String |
comment
Any comments you want to include about the origin access identity.
|
Constructor and Description |
---|
CloudFrontOriginAccessIdentityConfig()
Default constructor for CloudFrontOriginAccessIdentityConfig object.
|
CloudFrontOriginAccessIdentityConfig(java.lang.String callerReference)
Constructs a new CloudFrontOriginAccessIdentityConfig object.
|
Modifier and Type | Method and Description |
---|---|
CloudFrontOriginAccessIdentityConfig |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCallerReference()
A unique number that ensures the request can't be replayed.
|
java.lang.String |
getComment()
Any comments you want to include about the origin access identity.
|
int |
hashCode() |
void |
setCallerReference(java.lang.String callerReference)
A unique number that ensures the request can't be replayed.
|
void |
setComment(java.lang.String comment)
Any comments you want to include about the origin access identity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CloudFrontOriginAccessIdentityConfig |
withCallerReference(java.lang.String callerReference)
A unique number that ensures the request can't be replayed.
|
CloudFrontOriginAccessIdentityConfig |
withComment(java.lang.String comment)
Any comments you want to include about the origin access identity.
|
private java.lang.String callerReference
private java.lang.String comment
public CloudFrontOriginAccessIdentityConfig()
public CloudFrontOriginAccessIdentityConfig(java.lang.String callerReference)
callerReference
- A unique number that ensures the request can't be replayed. If the
CallerReference is new (no matter the content of the
CloudFrontOriginAccessIdentityConfig object), a new origin access
identity is created. If the CallerReference is a value you already
sent in a previous request to create an identity, and the content
of the CloudFrontOriginAccessIdentityConfig is identical to the
original request (ignoring white space), the response includes the
same information returned to the original request. If the
CallerReference is a value you already sent in a previous request
to create an identity but the content of the
CloudFrontOriginAccessIdentityConfig is different from the
original request, CloudFront returns a
CloudFrontOriginAccessIdentityAlreadyExists error.public void setCallerReference(java.lang.String callerReference)
callerReference
- A unique number that ensures the request can't be replayed. If the
CallerReference is new (no matter the content of the
CloudFrontOriginAccessIdentityConfig object), a new origin access
identity is created. If the CallerReference is a value you already
sent in a previous request to create an identity, and the content
of the CloudFrontOriginAccessIdentityConfig is identical to the
original request (ignoring white space), the response includes the
same information returned to the original request. If the
CallerReference is a value you already sent in a previous request
to create an identity but the content of the
CloudFrontOriginAccessIdentityConfig is different from the
original request, CloudFront returns a
CloudFrontOriginAccessIdentityAlreadyExists error.public java.lang.String getCallerReference()
public CloudFrontOriginAccessIdentityConfig withCallerReference(java.lang.String callerReference)
callerReference
- A unique number that ensures the request can't be replayed. If the
CallerReference is new (no matter the content of the
CloudFrontOriginAccessIdentityConfig object), a new origin access
identity is created. If the CallerReference is a value you already
sent in a previous request to create an identity, and the content
of the CloudFrontOriginAccessIdentityConfig is identical to the
original request (ignoring white space), the response includes the
same information returned to the original request. If the
CallerReference is a value you already sent in a previous request
to create an identity but the content of the
CloudFrontOriginAccessIdentityConfig is different from the
original request, CloudFront returns a
CloudFrontOriginAccessIdentityAlreadyExists error.public void setComment(java.lang.String comment)
comment
- Any comments you want to include about the origin access identity.public java.lang.String getComment()
public CloudFrontOriginAccessIdentityConfig withComment(java.lang.String comment)
comment
- Any comments you want to include about the origin access identity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CloudFrontOriginAccessIdentityConfig clone()
clone
in class java.lang.Object