public CreateEndpointRequest withAccessType(String accessType) {
        setAccessType(accessType);
        return this;
    }
<p>
The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon Web
Services VPC, choose <code>Private</code>. To use the endpoint with an on-premises network, choose
<code>CustomerOwnedIp</code>. If you choose <code>CustomerOwnedIp</code>, you must also provide the
customer-owned IP address pool (CoIP pool).
</p>
<note>
<p>
<code>Private</code> is the default access type value.
</p>
</note>

@param accessType
       The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon
       Web Services VPC, choose <code>Private</code>. To use the endpoint with an on-premises network, choose
       <code>CustomerOwnedIp</code>. If you choose <code>CustomerOwnedIp</code>, you must also provide the
       customer-owned IP address pool (CoIP pool).</p> <note>
       <p>
       <code>Private</code> is the default access type value.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see EndpointAccessType
aws-java-sdk-s3outposts/src/main/java/com/amazonaws/services/s3outposts/model/CreateEndpointRequest.java