Interface CreateInstanceProfileResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateInstanceProfileResponse.Builder,,CreateInstanceProfileResponse> IamResponse.Builder,SdkBuilder<CreateInstanceProfileResponse.Builder,,CreateInstanceProfileResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateInstanceProfileResponse
public static interface CreateInstanceProfileResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<CreateInstanceProfileResponse.Builder,CreateInstanceProfileResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninstanceProfile(Consumer<InstanceProfile.Builder> instanceProfile) A structure containing details about the new instance profile.instanceProfile(InstanceProfile instanceProfile) A structure containing details about the new instance profile.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
instanceProfile
A structure containing details about the new instance profile.
- Parameters:
instanceProfile- A structure containing details about the new instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfile
default CreateInstanceProfileResponse.Builder instanceProfile(Consumer<InstanceProfile.Builder> instanceProfile) A structure containing details about the new instance profile.
This is a convenience method that creates an instance of theInstanceProfile.Builderavoiding the need to create one manually viaInstanceProfile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceProfile(InstanceProfile).- Parameters:
instanceProfile- a consumer that will call methods onInstanceProfile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-