com.amazonaws.services.identitymanagement.model
Class UploadSigningCertificateRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.UploadSigningCertificateRequest

public class UploadSigningCertificateRequest
extends AmazonWebServiceRequest

Container for the parameters to the UploadSigningCertificate operation.

Uploads an X.509 signing certificate and associates it with the specified User. Some AWS services use X.509 signing certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active .

If the UserName field is not specified, the User name is determined implicitly based on the AWS Access Key ID used to sign the request. Because this action works for access keys under the AWS Account, this API can be used to manage root credentials even if the AWS Account has no associated Users.

NOTE:Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling UploadSigningCertificate. For more information, see Making Query Requests in Using AWS Identity and Access Management.

See Also:
AmazonIdentityManagement.uploadSigningCertificate(UploadSigningCertificateRequest)

Constructor Summary
UploadSigningCertificateRequest()
           
 
Method Summary
 java.lang.String getCertificateBody()
          The contents of the signing certificate.
 java.lang.String getUserName()
          Name of the User the signing certificate is for.
 void setCertificateBody(java.lang.String certificateBody)
          The contents of the signing certificate.
 void setUserName(java.lang.String userName)
          Name of the User the signing certificate is for.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UploadSigningCertificateRequest withCertificateBody(java.lang.String certificateBody)
          The contents of the signing certificate.
 UploadSigningCertificateRequest withUserName(java.lang.String userName)
          Name of the User the signing certificate is for.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadSigningCertificateRequest

public UploadSigningCertificateRequest()
Method Detail

getUserName

public java.lang.String getUserName()
Name of the User the signing certificate is for.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the User the signing certificate is for.

setUserName

public void setUserName(java.lang.String userName)
Name of the User the signing certificate is for.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the User the signing certificate is for.

withUserName

public UploadSigningCertificateRequest withUserName(java.lang.String userName)
Name of the User the signing certificate is for.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the User the signing certificate is for.
Returns:
A reference to this updated object so that method calls can be chained together.

getCertificateBody

public java.lang.String getCertificateBody()
The contents of the signing certificate.

Constraints:
Length: 1 - 16384
Pattern: [ -?]+

Returns:
The contents of the signing certificate.

setCertificateBody

public void setCertificateBody(java.lang.String certificateBody)
The contents of the signing certificate.

Constraints:
Length: 1 - 16384
Pattern: [ -?]+

Parameters:
certificateBody - The contents of the signing certificate.

withCertificateBody

public UploadSigningCertificateRequest withCertificateBody(java.lang.String certificateBody)
The contents of the signing certificate.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 16384
Pattern: [ -?]+

Parameters:
certificateBody - The contents of the signing certificate.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.