public Origin withProtocolPolicy(String protocolPolicy) {
        setProtocolPolicy(protocolPolicy);
        return this;
    }
<p>
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
</p>

@param protocolPolicy
       The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin
       to pull content.
@return Returns a reference to this object so that method calls can be chained together.
@see OriginProtocolPolicyEnum
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/Origin.java