Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class CreateInstanceProfileRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.CreateInstanceProfileRequest
All Implemented Interfaces:
Serializable

public class CreateInstanceProfileRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateInstanceProfile operation.

Creates a new instance profile. For information about instance profiles, go to About Instance Profiles .

For information about the number of instance profiles you can create, see Limitations on IAM Entities in Using AWS Identity and Access Management .

See Also:
AmazonIdentityManagement.createInstanceProfile(CreateInstanceProfileRequest), Serialized Form

Constructor Summary
CreateInstanceProfileRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getInstanceProfileName()
          Name of the instance profile to create.
 String getPath()
          The path to the instance profile.
 int hashCode()
           
 void setInstanceProfileName(String instanceProfileName)
          Name of the instance profile to create.
 void setPath(String path)
          The path to the instance profile.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateInstanceProfileRequest withInstanceProfileName(String instanceProfileName)
          Name of the instance profile to create.
 CreateInstanceProfileRequest withPath(String path)
          The path to the instance profile.
 
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

CreateInstanceProfileRequest

public CreateInstanceProfileRequest()
Method Detail

getInstanceProfileName

public String getInstanceProfileName()
Name of the instance profile to create.

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

Returns:
Name of the instance profile to create.

setInstanceProfileName

public void setInstanceProfileName(String instanceProfileName)
Name of the instance profile to create.

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

Parameters:
instanceProfileName - Name of the instance profile to create.

withInstanceProfileName

public CreateInstanceProfileRequest withInstanceProfileName(String instanceProfileName)
Name of the instance profile to create.

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

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

Parameters:
instanceProfileName - Name of the instance profile to create.
Returns:
A reference to this updated object so that method calls can be chained together.

getPath

public String getPath()
The path to the instance profile. 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 (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Returns:
The path to the instance profile. 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 (/).


setPath

public void setPath(String path)
The path to the instance profile. 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 (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path to the instance profile. 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 (/).


withPath

public CreateInstanceProfileRequest withPath(String path)
The path to the instance profile. 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 (/).

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

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path to the instance profile. 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 (/).

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.