Interface CreateProfileRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateProfileRequest.Builder,CreateProfileRequest>,RolesAnywhereRequest.Builder,SdkBuilder<CreateProfileRequest.Builder,CreateProfileRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateProfileRequest
public static interface CreateProfileRequest.Builder extends RolesAnywhereRequest.Builder, SdkPojo, CopyableBuilder<CreateProfileRequest.Builder,CreateProfileRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateProfileRequest.BuilderdurationSeconds(Integer durationSeconds)The number of seconds the vended session credentials are valid for.CreateProfileRequest.Builderenabled(Boolean enabled)Specifies whether the profile is enabled.CreateProfileRequest.BuildermanagedPolicyArns(String... managedPolicyArns)A list of managed policy ARNs that apply to the vended session credentials.CreateProfileRequest.BuildermanagedPolicyArns(Collection<String> managedPolicyArns)A list of managed policy ARNs that apply to the vended session credentials.CreateProfileRequest.Buildername(String name)The name of the profile.CreateProfileRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateProfileRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateProfileRequest.BuilderrequireInstanceProperties(Boolean requireInstanceProperties)Specifies whether instance properties are required in temporary credential requests with this profile.CreateProfileRequest.BuilderroleArns(String... roleArns)A list of IAM roles that this profile can assume in a temporary credential request.CreateProfileRequest.BuilderroleArns(Collection<String> roleArns)A list of IAM roles that this profile can assume in a temporary credential request.CreateProfileRequest.BuildersessionPolicy(String sessionPolicy)A session policy that applies to the trust boundary of the vended session credentials.CreateProfileRequest.Buildertags(Collection<Tag> tags)The tags to attach to the profile.CreateProfileRequest.Buildertags(Consumer<Tag.Builder>... tags)The tags to attach to the profile.CreateProfileRequest.Buildertags(Tag... tags)The tags to attach to the profile.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rolesanywhere.model.RolesAnywhereRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
durationSeconds
CreateProfileRequest.Builder durationSeconds(Integer durationSeconds)
The number of seconds the vended session credentials are valid for.
- Parameters:
durationSeconds- The number of seconds the vended session credentials are valid for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabled
CreateProfileRequest.Builder enabled(Boolean enabled)
Specifies whether the profile is enabled.
- Parameters:
enabled- Specifies whether the profile is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedPolicyArns
CreateProfileRequest.Builder managedPolicyArns(Collection<String> managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
- Parameters:
managedPolicyArns- A list of managed policy ARNs that apply to the vended session credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedPolicyArns
CreateProfileRequest.Builder managedPolicyArns(String... managedPolicyArns)
A list of managed policy ARNs that apply to the vended session credentials.
- Parameters:
managedPolicyArns- A list of managed policy ARNs that apply to the vended session credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateProfileRequest.Builder name(String name)
The name of the profile.
- Parameters:
name- The name of the profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireInstanceProperties
CreateProfileRequest.Builder requireInstanceProperties(Boolean requireInstanceProperties)
Specifies whether instance properties are required in temporary credential requests with this profile.
- Parameters:
requireInstanceProperties- Specifies whether instance properties are required in temporary credential requests with this profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArns
CreateProfileRequest.Builder roleArns(Collection<String> roleArns)
A list of IAM roles that this profile can assume in a temporary credential request.
- Parameters:
roleArns- A list of IAM roles that this profile can assume in a temporary credential request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArns
CreateProfileRequest.Builder roleArns(String... roleArns)
A list of IAM roles that this profile can assume in a temporary credential request.
- Parameters:
roleArns- A list of IAM roles that this profile can assume in a temporary credential request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionPolicy
CreateProfileRequest.Builder sessionPolicy(String sessionPolicy)
A session policy that applies to the trust boundary of the vended session credentials.
- Parameters:
sessionPolicy- A session policy that applies to the trust boundary of the vended session credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProfileRequest.Builder tags(Collection<Tag> tags)
The tags to attach to the profile.
- Parameters:
tags- The tags to attach to the profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProfileRequest.Builder tags(Tag... tags)
The tags to attach to the profile.
- Parameters:
tags- The tags to attach to the profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProfileRequest.Builder tags(Consumer<Tag.Builder>... tags)
The tags to attach to the profile.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateProfileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-