public class CreateInstanceProfileRequest extends AmazonWebServiceRequest implements Serializable
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 the Using IAM guide.
NOOP
Constructor and Description |
---|
CreateInstanceProfileRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getInstanceProfileName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setInstanceProfileName(String instanceProfileName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
instanceProfileName
- Name of the instance profile to create.public CreateInstanceProfileRequest withInstanceProfileName(String instanceProfileName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
instanceProfileName
- Name of the instance profile to create.public String getPath()
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
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: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path to the instance profile. For more information about paths,
see Identifiers
for IAM Entities in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
public CreateInstanceProfileRequest 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: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path to the instance profile. For more information about paths,
see Identifiers
for IAM Entities in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.