public void setDirection(String direction) {
        this.direction = direction;
    }
<p>
Specify the applicable value:
</p>
<ul>
<li>
<p>
<code>INBOUND</code>: Resolver forwards DNS queries to the DNS service for a VPC from your network
</p>
</li>
<li>
<p>
<code>OUTBOUND</code>: Resolver forwards DNS queries from the DNS service for a VPC to your network
</p>
</li>
</ul>

@param direction
       Specify the applicable value:</p>
       <ul>
       <li>
       <p>
       <code>INBOUND</code>: Resolver forwards DNS queries to the DNS service for a VPC from your network
       </p>
       </li>
       <li>
       <p>
       <code>OUTBOUND</code>: Resolver forwards DNS queries from the DNS service for a VPC to your network
       </p>
       </li>
@see ResolverEndpointDirection
aws-java-sdk-route53resolver/src/main/java/com/amazonaws/services/route53resolver/model/CreateResolverEndpointRequest.java