|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.identitymanagement.model.UploadServerCertificateRequest
public class UploadServerCertificateRequest
Container for the parameters to the UploadServerCertificate operation
.
Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.
For information about the number of server certificates you can upload, see Limitations on IAM Entities in Using AWS Identity and Access Management .
NOTE:Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in Using IAM.
AmazonIdentityManagement.uploadServerCertificate(UploadServerCertificateRequest)
,
Serialized FormConstructor Summary | |
---|---|
UploadServerCertificateRequest()
Default constructor for a new UploadServerCertificateRequest object. |
|
UploadServerCertificateRequest(String serverCertificateName,
String certificateBody,
String privateKey)
Constructs a new UploadServerCertificateRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCertificateBody()
The contents of the public key certificate in PEM-encoded format. |
String |
getCertificateChain()
The contents of the certificate chain. |
String |
getPath()
The path for the server certificate. |
String |
getPrivateKey()
The contents of the private key in PEM-encoded format. |
String |
getServerCertificateName()
The name for the server certificate. |
int |
hashCode()
|
void |
setCertificateBody(String certificateBody)
The contents of the public key certificate in PEM-encoded format. |
void |
setCertificateChain(String certificateChain)
The contents of the certificate chain. |
void |
setPath(String path)
The path for the server certificate. |
void |
setPrivateKey(String privateKey)
The contents of the private key in PEM-encoded format. |
void |
setServerCertificateName(String serverCertificateName)
The name for the server certificate. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
UploadServerCertificateRequest |
withCertificateBody(String certificateBody)
The contents of the public key certificate in PEM-encoded format. |
UploadServerCertificateRequest |
withCertificateChain(String certificateChain)
The contents of the certificate chain. |
UploadServerCertificateRequest |
withPath(String path)
The path for the server certificate. |
UploadServerCertificateRequest |
withPrivateKey(String privateKey)
The contents of the private key in PEM-encoded format. |
UploadServerCertificateRequest |
withServerCertificateName(String serverCertificateName)
The name for the server certificate. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UploadServerCertificateRequest()
public UploadServerCertificateRequest(String serverCertificateName, String certificateBody, String privateKey)
serverCertificateName
- The name for the server certificate. Do
not include the path in this value.certificateBody
- The contents of the public key certificate in
PEM-encoded format.privateKey
- The contents of the private key in PEM-encoded
format.Method Detail |
---|
public String getPath()
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
This parameter is optional. If it is not included, it defaults to a slash (/).
public void setPath(String path)
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
path
- The path for the server certificate. For more information about paths,
see Identifiers for IAM Entities in Using AWS
Identity and Access Management. This parameter is optional. If it is not included, it defaults to a slash (/).
public UploadServerCertificateRequest withPath(String path)
This parameter is optional. If it is not included, it defaults to a slash (/).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
path
- The path for the server certificate. For more information about paths,
see Identifiers for IAM Entities in Using AWS
Identity and Access Management. This parameter is optional. If it is not included, it defaults to a slash (/).
public String getServerCertificateName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setServerCertificateName(String serverCertificateName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
serverCertificateName
- The name for the server certificate. Do not include the path in this
value.public UploadServerCertificateRequest withServerCertificateName(String serverCertificateName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
serverCertificateName
- The name for the server certificate. Do not include the path in this
value.
public String getCertificateBody()
Constraints:
Length: 1 - 16384
Pattern: [
-?]+
public void setCertificateBody(String certificateBody)
Constraints:
Length: 1 - 16384
Pattern: [
-?]+
certificateBody
- The contents of the public key certificate in PEM-encoded format.public UploadServerCertificateRequest withCertificateBody(String certificateBody)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
Pattern: [
-?]+
certificateBody
- The contents of the public key certificate in PEM-encoded format.
public String getPrivateKey()
Constraints:
Length: 1 - 16384
Pattern: [
-?]*
public void setPrivateKey(String privateKey)
Constraints:
Length: 1 - 16384
Pattern: [
-?]*
privateKey
- The contents of the private key in PEM-encoded format.public UploadServerCertificateRequest withPrivateKey(String privateKey)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
Pattern: [
-?]*
privateKey
- The contents of the private key in PEM-encoded format.
public String getCertificateChain()
Constraints:
Length: 1 - 2097152
Pattern: [
-?]*
public void setCertificateChain(String certificateChain)
Constraints:
Length: 1 - 2097152
Pattern: [
-?]*
certificateChain
- The contents of the certificate chain. This is typically a
concatenation of the PEM-encoded public key certificates of the chain.public UploadServerCertificateRequest withCertificateChain(String certificateChain)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2097152
Pattern: [
-?]*
certificateChain
- The contents of the certificate chain. This is typically a
concatenation of the PEM-encoded public key certificates of the chain.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |