Interface CreateDomainAccessGrantForOrganizationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchOmniResponse.Builder,CopyableBuilder<CreateDomainAccessGrantForOrganizationResponse.Builder,,CreateDomainAccessGrantForOrganizationResponse> SdkBuilder<CreateDomainAccessGrantForOrganizationResponse.Builder,,CreateDomainAccessGrantForOrganizationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateDomainAccessGrantForOrganizationResponse
@Mutable
@NotThreadSafe
public static interface CreateDomainAccessGrantForOrganizationResponse.Builder
extends CloudWatchOmniResponse.Builder, SdkPojo, CopyableBuilder<CreateDomainAccessGrantForOrganizationResponse.Builder,CreateDomainAccessGrantForOrganizationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionaccessGrant(Consumer<OrganizationAccessGrant.Builder> accessGrant) The details of the created organization access grant.accessGrant(OrganizationAccessGrant accessGrant) The details of the created organization access grant.Methods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
accessGrant
CreateDomainAccessGrantForOrganizationResponse.Builder accessGrant(OrganizationAccessGrant accessGrant) The details of the created organization access grant.
- Parameters:
accessGrant- The details of the created organization access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrant
default CreateDomainAccessGrantForOrganizationResponse.Builder accessGrant(Consumer<OrganizationAccessGrant.Builder> accessGrant) The details of the created organization access grant.
This is a convenience method that creates an instance of theOrganizationAccessGrant.Builderavoiding the need to create one manually viaOrganizationAccessGrant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessGrant(OrganizationAccessGrant).- Parameters:
accessGrant- a consumer that will call methods onOrganizationAccessGrant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-