Interface AwsIamInstanceProfile.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsIamInstanceProfile.Builder,
,AwsIamInstanceProfile> SdkBuilder<AwsIamInstanceProfile.Builder,
,AwsIamInstanceProfile> SdkPojo
- Enclosing class:
AwsIamInstanceProfile
@Mutable
@NotThreadSafe
public static interface AwsIamInstanceProfile.Builder
extends SdkPojo, CopyableBuilder<AwsIamInstanceProfile.Builder,AwsIamInstanceProfile>
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the instance profile.createDate
(String createDate) Indicates when the instance profile was created.instanceProfileId
(String instanceProfileId) The identifier of the instance profile.instanceProfileName
(String instanceProfileName) The name of the instance profile.The path to the instance profile.roles
(Collection<AwsIamInstanceProfileRole> roles) The roles associated with the instance profile.roles
(Consumer<AwsIamInstanceProfileRole.Builder>... roles) The roles associated with the instance profile.roles
(AwsIamInstanceProfileRole... roles) The roles associated with the instance profile.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
The ARN of the instance profile.
- Parameters:
arn
- The ARN of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createDate
Indicates when the instance profile was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
createDate
- Indicates when the instance profile was created.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileId
The identifier of the instance profile.
- Parameters:
instanceProfileId
- The identifier of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileName
The name of the instance profile.
- Parameters:
instanceProfileName
- The name of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The path to the instance profile.
- Parameters:
path
- The path to the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The roles associated with the instance profile.
- Parameters:
roles
- The roles associated with the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The roles associated with the instance profile.
- Parameters:
roles
- The roles associated with the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The roles associated with the instance profile.
This is a convenience method that creates an instance of theAwsIamInstanceProfileRole.Builder
avoiding the need to create one manually viaAwsIamInstanceProfileRole.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroles(List<AwsIamInstanceProfileRole>)
.- Parameters:
roles
- a consumer that will call methods onAwsIamInstanceProfileRole.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-