public ContactMethod withLocation(ResourceLocation location) {
        setLocation(location);
        return this;
    }
<p>
An object that describes the location of the contact method, such as the Amazon Web Services Region and
Availability Zone.
</p>

@param location
       An object that describes the location of the contact method, such as the Amazon Web Services Region and
       Availability Zone.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/ContactMethod.java