@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateProfileRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateProfileRequest() |
Modifier and Type | Method and Description |
---|---|
CreateProfileRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getDurationSeconds()
The number of seconds the vended session credentials are valid for.
|
Boolean |
getEnabled()
Specifies whether the profile is enabled.
|
List<String> |
getManagedPolicyArns()
A list of managed policy ARNs that apply to the vended session credentials.
|
String |
getName()
The name of the profile.
|
Boolean |
getRequireInstanceProperties()
Specifies whether instance properties are required in CreateSession
requests with this profile.
|
List<String> |
getRoleArns()
A list of IAM roles that this profile can assume in a CreateSession
operation.
|
String |
getSessionPolicy()
A session policy that applies to the trust boundary of the vended session credentials.
|
List<Tag> |
getTags()
The tags to attach to the profile.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether the profile is enabled.
|
Boolean |
isRequireInstanceProperties()
Specifies whether instance properties are required in CreateSession
requests with this profile.
|
void |
setDurationSeconds(Integer durationSeconds)
The number of seconds the vended session credentials are valid for.
|
void |
setEnabled(Boolean enabled)
Specifies whether the profile is enabled.
|
void |
setManagedPolicyArns(Collection<String> managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
|
void |
setName(String name)
The name of the profile.
|
void |
setRequireInstanceProperties(Boolean requireInstanceProperties)
Specifies whether instance properties are required in CreateSession
requests with this profile.
|
void |
setRoleArns(Collection<String> roleArns)
A list of IAM roles that this profile can assume in a CreateSession
operation.
|
void |
setSessionPolicy(String sessionPolicy)
A session policy that applies to the trust boundary of the vended session credentials.
|
void |
setTags(Collection<Tag> tags)
The tags to attach to the profile.
|
String |
toString()
Returns a string representation of this object.
|
CreateProfileRequest |
withDurationSeconds(Integer durationSeconds)
The number of seconds the vended session credentials are valid for.
|
CreateProfileRequest |
withEnabled(Boolean enabled)
Specifies whether the profile is enabled.
|
CreateProfileRequest |
withManagedPolicyArns(Collection<String> managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
|
CreateProfileRequest |
withManagedPolicyArns(String... managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
|
CreateProfileRequest |
withName(String name)
The name of the profile.
|
CreateProfileRequest |
withRequireInstanceProperties(Boolean requireInstanceProperties)
Specifies whether instance properties are required in CreateSession
requests with this profile.
|
CreateProfileRequest |
withRoleArns(Collection<String> roleArns)
A list of IAM roles that this profile can assume in a CreateSession
operation.
|
CreateProfileRequest |
withRoleArns(String... roleArns)
A list of IAM roles that this profile can assume in a CreateSession
operation.
|
CreateProfileRequest |
withSessionPolicy(String sessionPolicy)
A session policy that applies to the trust boundary of the vended session credentials.
|
CreateProfileRequest |
withTags(Collection<Tag> tags)
The tags to attach to the profile.
|
CreateProfileRequest |
withTags(Tag... tags)
The tags to attach to the profile.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDurationSeconds(Integer durationSeconds)
The number of seconds the vended session credentials are valid for.
durationSeconds
- The number of seconds the vended session credentials are valid for.public Integer getDurationSeconds()
The number of seconds the vended session credentials are valid for.
public CreateProfileRequest withDurationSeconds(Integer durationSeconds)
The number of seconds the vended session credentials are valid for.
durationSeconds
- The number of seconds the vended session credentials are valid for.public void setEnabled(Boolean enabled)
Specifies whether the profile is enabled.
enabled
- Specifies whether the profile is enabled.public Boolean getEnabled()
Specifies whether the profile is enabled.
public CreateProfileRequest withEnabled(Boolean enabled)
Specifies whether the profile is enabled.
enabled
- Specifies whether the profile is enabled.public Boolean isEnabled()
Specifies whether the profile is enabled.
public List<String> getManagedPolicyArns()
A list of managed policy ARNs that apply to the vended session credentials.
public void setManagedPolicyArns(Collection<String> managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
managedPolicyArns
- A list of managed policy ARNs that apply to the vended session credentials.public CreateProfileRequest withManagedPolicyArns(String... managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
NOTE: This method appends the values to the existing list (if any). Use
setManagedPolicyArns(java.util.Collection)
or withManagedPolicyArns(java.util.Collection)
if
you want to override the existing values.
managedPolicyArns
- A list of managed policy ARNs that apply to the vended session credentials.public CreateProfileRequest withManagedPolicyArns(Collection<String> managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
managedPolicyArns
- A list of managed policy ARNs that apply to the vended session credentials.public void setName(String name)
The name of the profile.
name
- The name of the profile.public String getName()
The name of the profile.
public CreateProfileRequest withName(String name)
The name of the profile.
name
- The name of the profile.public void setRequireInstanceProperties(Boolean requireInstanceProperties)
Specifies whether instance properties are required in CreateSession requests with this profile.
requireInstanceProperties
- Specifies whether instance properties are required in CreateSession requests with this profile.public Boolean getRequireInstanceProperties()
Specifies whether instance properties are required in CreateSession requests with this profile.
public CreateProfileRequest withRequireInstanceProperties(Boolean requireInstanceProperties)
Specifies whether instance properties are required in CreateSession requests with this profile.
requireInstanceProperties
- Specifies whether instance properties are required in CreateSession requests with this profile.public Boolean isRequireInstanceProperties()
Specifies whether instance properties are required in CreateSession requests with this profile.
public List<String> getRoleArns()
A list of IAM roles that this profile can assume in a CreateSession operation.
public void setRoleArns(Collection<String> roleArns)
A list of IAM roles that this profile can assume in a CreateSession operation.
roleArns
- A list of IAM roles that this profile can assume in a CreateSession operation.public CreateProfileRequest withRoleArns(String... roleArns)
A list of IAM roles that this profile can assume in a CreateSession operation.
NOTE: This method appends the values to the existing list (if any). Use
setRoleArns(java.util.Collection)
or withRoleArns(java.util.Collection)
if you want to override
the existing values.
roleArns
- A list of IAM roles that this profile can assume in a CreateSession operation.public CreateProfileRequest withRoleArns(Collection<String> roleArns)
A list of IAM roles that this profile can assume in a CreateSession operation.
roleArns
- A list of IAM roles that this profile can assume in a CreateSession operation.public void setSessionPolicy(String sessionPolicy)
A session policy that applies to the trust boundary of the vended session credentials.
sessionPolicy
- A session policy that applies to the trust boundary of the vended session credentials.public String getSessionPolicy()
A session policy that applies to the trust boundary of the vended session credentials.
public CreateProfileRequest withSessionPolicy(String sessionPolicy)
A session policy that applies to the trust boundary of the vended session credentials.
sessionPolicy
- A session policy that applies to the trust boundary of the vended session credentials.public List<Tag> getTags()
The tags to attach to the profile.
public void setTags(Collection<Tag> tags)
The tags to attach to the profile.
tags
- The tags to attach to the profile.public CreateProfileRequest withTags(Tag... tags)
The tags to attach to the profile.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to attach to the profile.public CreateProfileRequest withTags(Collection<Tag> tags)
The tags to attach to the profile.
tags
- The tags to attach to the profile.public String toString()
toString
in class Object
Object.toString()
public CreateProfileRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()