public WindowsFileSystemConfiguration withPreferredSubnetId(String preferredSubnetId) {
        setPreferredSubnetId(preferredSubnetId);
        return this;
    }
<p>
For <code>MULTI_AZ_1</code> deployment types, it specifies the ID of the subnet where the preferred file server
is located. Must be one of the two subnet IDs specified in <code>SubnetIds</code> property. Amazon FSx serves
traffic from this subnet except in the event of a failover to the secondary file server.
</p>
<p>
For <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> deployment types, this value is the same as that for
<code>SubnetIDs</code>. For more information, see <a href=
"https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html#single-multi-az-resources"
>Availability and durability: Single-AZ and Multi-AZ file systems</a>.
</p>

@param preferredSubnetId
       For <code>MULTI_AZ_1</code> deployment types, it specifies the ID of the subnet where the preferred file
       server is located. Must be one of the two subnet IDs specified in <code>SubnetIds</code> property. Amazon
       FSx serves traffic from this subnet except in the event of a failover to the secondary file server.</p>
       <p>
       For <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> deployment types, this value is the same as that
       for <code>SubnetIDs</code>. For more information, see <a href=
       "https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html#single-multi-az-resources"
       >Availability and durability: Single-AZ and Multi-AZ file systems</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/WindowsFileSystemConfiguration.java