@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Certificate extends Object implements Serializable, Cloneable, StructuredPojo
The certificate.
Constructor and Description |
---|
Certificate() |
Modifier and Type | Method and Description |
---|---|
Certificate |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getBody()
The body of the certificate.
|
String |
getIssuer()
The entity that issued the certificate.
|
Date |
getNotValidAfter()
The certificate is not valid after this date.
|
Date |
getNotValidBefore()
The certificate is not valid before this date.
|
String |
getSubject()
The entity the certificate belongs to.
|
String |
getThumbprint()
A hexadecimal identifier for the certificate.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(ByteBuffer body)
The body of the certificate.
|
void |
setIssuer(String issuer)
The entity that issued the certificate.
|
void |
setNotValidAfter(Date notValidAfter)
The certificate is not valid after this date.
|
void |
setNotValidBefore(Date notValidBefore)
The certificate is not valid before this date.
|
void |
setSubject(String subject)
The entity the certificate belongs to.
|
void |
setThumbprint(String thumbprint)
A hexadecimal identifier for the certificate.
|
String |
toString()
Returns a string representation of this object.
|
Certificate |
withBody(ByteBuffer body)
The body of the certificate.
|
Certificate |
withIssuer(String issuer)
The entity that issued the certificate.
|
Certificate |
withNotValidAfter(Date notValidAfter)
The certificate is not valid after this date.
|
Certificate |
withNotValidBefore(Date notValidBefore)
The certificate is not valid before this date.
|
Certificate |
withSubject(String subject)
The entity the certificate belongs to.
|
Certificate |
withThumbprint(String thumbprint)
A hexadecimal identifier for the certificate.
|
public void setBody(ByteBuffer body)
The body of the certificate.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
body
- The body of the certificate.public ByteBuffer getBody()
The body of the certificate.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public Certificate withBody(ByteBuffer body)
The body of the certificate.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
body
- The body of the certificate.public void setIssuer(String issuer)
The entity that issued the certificate.
issuer
- The entity that issued the certificate.public String getIssuer()
The entity that issued the certificate.
public Certificate withIssuer(String issuer)
The entity that issued the certificate.
issuer
- The entity that issued the certificate.public void setNotValidAfter(Date notValidAfter)
The certificate is not valid after this date.
notValidAfter
- The certificate is not valid after this date.public Date getNotValidAfter()
The certificate is not valid after this date.
public Certificate withNotValidAfter(Date notValidAfter)
The certificate is not valid after this date.
notValidAfter
- The certificate is not valid after this date.public void setNotValidBefore(Date notValidBefore)
The certificate is not valid before this date.
notValidBefore
- The certificate is not valid before this date.public Date getNotValidBefore()
The certificate is not valid before this date.
public Certificate withNotValidBefore(Date notValidBefore)
The certificate is not valid before this date.
notValidBefore
- The certificate is not valid before this date.public void setSubject(String subject)
The entity the certificate belongs to.
subject
- The entity the certificate belongs to.public String getSubject()
The entity the certificate belongs to.
public Certificate withSubject(String subject)
The entity the certificate belongs to.
subject
- The entity the certificate belongs to.public void setThumbprint(String thumbprint)
A hexadecimal identifier for the certificate.
thumbprint
- A hexadecimal identifier for the certificate.public String getThumbprint()
A hexadecimal identifier for the certificate.
public Certificate withThumbprint(String thumbprint)
A hexadecimal identifier for the certificate.
thumbprint
- A hexadecimal identifier for the certificate.public String toString()
toString
in class Object
Object.toString()
public Certificate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.