public ContactMethod withProtocol(String protocol) {
        setProtocol(protocol);
        return this;
    }
<p>
The protocol of the contact method, such as email or SMS (text messaging).
</p>

@param protocol
       The protocol of the contact method, such as email or SMS (text messaging).
@return Returns a reference to this object so that method calls can be chained together.
@see ContactProtocol
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/ContactMethod.java