Interface ListMailDomainsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListMailDomainsResponse.Builder,ListMailDomainsResponse>,SdkBuilder<ListMailDomainsResponse.Builder,ListMailDomainsResponse>,SdkPojo,SdkResponse.Builder,WorkMailResponse.Builder
- Enclosing class:
- ListMailDomainsResponse
public static interface ListMailDomainsResponse.Builder extends WorkMailResponse.Builder, SdkPojo, CopyableBuilder<ListMailDomainsResponse.Builder,ListMailDomainsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListMailDomainsResponse.BuildermailDomains(Collection<MailDomainSummary> mailDomains)The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.ListMailDomainsResponse.BuildermailDomains(Consumer<MailDomainSummary.Builder>... mailDomains)The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.ListMailDomainsResponse.BuildermailDomains(MailDomainSummary... mailDomains)The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.ListMailDomainsResponse.BuildernextToken(String nextToken)The token to use to retrieve the next page of results.-
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.workmail.model.WorkMailResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
mailDomains
ListMailDomainsResponse.Builder mailDomains(Collection<MailDomainSummary> mailDomains)
The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.
- Parameters:
mailDomains- The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mailDomains
ListMailDomainsResponse.Builder mailDomains(MailDomainSummary... mailDomains)
The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.
- Parameters:
mailDomains- The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mailDomains
ListMailDomainsResponse.Builder mailDomains(Consumer<MailDomainSummary.Builder>... mailDomains)
The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.
This is a convenience method that creates an instance of theMailDomainSummary.Builderavoiding the need to create one manually viaMailDomainSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#mailDomains(List.) - Parameters:
mailDomains- a consumer that will call methods onMailDomainSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#mailDomains(java.util.Collection)
-
nextToken
ListMailDomainsResponse.Builder nextToken(String nextToken)
The token to use to retrieve the next page of results. The value becomes
nullwhen there are no more results to return.- Parameters:
nextToken- The token to use to retrieve the next page of results. The value becomesnullwhen there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-