Interface GetSubjectResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSubjectResponse.Builder,GetSubjectResponse>
,RolesAnywhereResponse.Builder
,SdkBuilder<GetSubjectResponse.Builder,GetSubjectResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetSubjectResponse
public static interface GetSubjectResponse.Builder extends RolesAnywhereResponse.Builder, SdkPojo, CopyableBuilder<GetSubjectResponse.Builder,GetSubjectResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetSubjectResponse.Builder
subject(Consumer<SubjectDetail.Builder> subject)
The state of the subject after a read or write operation.GetSubjectResponse.Builder
subject(SubjectDetail subject)
The state of the subject after a read or write operation.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rolesanywhere.model.RolesAnywhereResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
subject
GetSubjectResponse.Builder subject(SubjectDetail subject)
The state of the subject after a read or write operation.
- Parameters:
subject
- The state of the subject after a read or write operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
default GetSubjectResponse.Builder subject(Consumer<SubjectDetail.Builder> subject)
The state of the subject after a read or write operation.
This is a convenience method that creates an instance of theSubjectDetail.Builder
avoiding the need to create one manually viaSubjectDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubject(SubjectDetail)
.- Parameters:
subject
- a consumer that will call methods onSubjectDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
subject(SubjectDetail)
-
-