public CustomOrigin WithProtocolPolicy(OriginProtocolPolicy protocolPolicy) { this.ProtocolPolicy = protocolPolicy; return(this); }
/// <summary> /// Sets the origin protocol policy to apply to your origin. If HttpOnly is specified, /// CloudFront will use HTTP only to /// access the origin. If MatchViewer is specified, /// CloudFront will fetch from your origin using HTTP or /// HTTPS, based on the protocol of the viewer request. /// This instance is returned to allow method chaining. /// </summary> /// <param name="protocolPolicy">The origin protocol policy.</param> /// <returns>This instance</returns> public CustomOrigin WithProtocolPolicy(OriginProtocolPolicy protocolPolicy) { this.ProtocolPolicy = protocolPolicy; return this; }