public CreateOriginAccessControlResult withOriginAccessControl(OriginAccessControl originAccessControl) {
        setOriginAccessControl(originAccessControl);
        return this;
    }
<p>
Contains an origin access control.
</p>

@param originAccessControl
       Contains an origin access control.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/CreateOriginAccessControlResult.java