public static interface GetContactMethodsResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetContactMethodsResponse.Builder,GetContactMethodsResponse>
Modifier and Type | Method and Description |
---|---|
GetContactMethodsResponse.Builder |
contactMethods(Collection<ContactMethod> contactMethods)
An array of objects that describe the contact methods.
|
GetContactMethodsResponse.Builder |
contactMethods(Consumer<ContactMethod.Builder>... contactMethods)
An array of objects that describe the contact methods.
|
GetContactMethodsResponse.Builder |
contactMethods(ContactMethod... contactMethods)
An array of objects that describe the contact methods.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
GetContactMethodsResponse.Builder contactMethods(Collection<ContactMethod> contactMethods)
An array of objects that describe the contact methods.
contactMethods
- An array of objects that describe the contact methods.GetContactMethodsResponse.Builder contactMethods(ContactMethod... contactMethods)
An array of objects that describe the contact methods.
contactMethods
- An array of objects that describe the contact methods.GetContactMethodsResponse.Builder contactMethods(Consumer<ContactMethod.Builder>... contactMethods)
An array of objects that describe the contact methods.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #contactMethods(List)
.contactMethods
- a consumer that will call methods on List.Builder
#contactMethods(List)