public void setSubnetArns(java.util.Collection<String> subnetArns) {
        if (subnetArns == null) {
            this.subnetArns = null;
            return;
        }

        this.subnetArns = new java.util.ArrayList<String>(subnetArns);
    }
<p>
Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC endpoint. This is the
subnet where DataSync creates and manages the <a
href="https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces"
>network interfaces</a> for your transfer. You can only specify one ARN.
</p>

@param subnetArns
       Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC endpoint. This
       is the subnet where DataSync creates and manages the <a href=
       "https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces"
       >network interfaces</a> for your transfer. You can only specify one ARN.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/CreateAgentRequest.java