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()
          Default constructor for a new UploadSigningCertificateRequest object.
UploadSigningCertificateRequest(String certificateBody)
          Constructs a new UploadSigningCertificateRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCertificateBody()
          The contents of the signing certificate.
 String getUserName()
          Name of the user the signing certificate is for.
 int hashCode()
           
 void setCertificateBody(String certificateBody)
          The contents of the signing certificate.
 void setUserName(String userName)
          Name of the user the signing certificate is for.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UploadSigningCertificateRequest withCertificateBody(String certificateBody)
          The contents of the signing certificate.
 UploadSigningCertificateRequest withUserName(String userName)
          Name of the user the signing certificate is for.
 
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

UploadSigningCertificateRequest

public UploadSigningCertificateRequest()
Default constructor for a new UploadSigningCertificateRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


UploadSigningCertificateRequest

public UploadSigningCertificateRequest(String certificateBody)
Constructs a new UploadSigningCertificateRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
certificateBody - The contents of the signing certificate.
Method Detail

getUserName

public String getUserName()
Name of the user the signing certificate is for.

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

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

setUserName

public void setUserName(String userName)
Name of the user the signing certificate is for.

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

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

withUserName

public UploadSigningCertificateRequest withUserName(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 - 64
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 String getCertificateBody()
The contents of the signing certificate.

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

Returns:
The contents of the signing certificate.

setCertificateBody

public void setCertificateBody(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(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 String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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