Interface CreateRoleResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<CreateRoleResponse.Builder,CreateRoleResponse>, IamResponse.Builder, SdkBuilder<CreateRoleResponse.Builder,CreateRoleResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
CreateRoleResponse

public static interface CreateRoleResponse.Builder extends IamResponse.Builder, SdkPojo, CopyableBuilder<CreateRoleResponse.Builder,CreateRoleResponse>
  • Method Details

    • role

      A structure containing details about the new role.

      Parameters:
      role - A structure containing details about the new role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • role

      A structure containing details about the new role.

      This is a convenience method that creates an instance of the Role.Builder avoiding the need to create one manually via Role.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to role(Role).

      Parameters:
      role - a consumer that will call methods on Role.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: