Interface GetContactMethodsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetContactMethodsResponse.Builder,,GetContactMethodsResponse> LightsailResponse.Builder,SdkBuilder<GetContactMethodsResponse.Builder,,GetContactMethodsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetContactMethodsResponse
public static interface GetContactMethodsResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetContactMethodsResponse.Builder,GetContactMethodsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncontactMethods(Collection<ContactMethod> contactMethods) An array of objects that describe the contact methods.contactMethods(Consumer<ContactMethod.Builder>... contactMethods) An array of objects that describe the contact methods.contactMethods(ContactMethod... contactMethods) An array of objects that describe the contact methods.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
contactMethods
An array of objects that describe the contact methods.
- Parameters:
contactMethods- An array of objects that describe the contact methods.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contactMethods
An array of objects that describe the contact methods.
- Parameters:
contactMethods- An array of objects that describe the contact methods.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contactMethods
An array of objects that describe the contact methods.
This is a convenience method that creates an instance of theContactMethod.Builderavoiding the need to create one manually viaContactMethod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontactMethods(List<ContactMethod>).- Parameters:
contactMethods- a consumer that will call methods onContactMethod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-