public void setState(String state) {
        this.state = state;
    }
<p>
The state of the subnet association.
</p>

@param state
       The state of the subnet association.
@see TransitGatewayMulitcastDomainAssociationState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SubnetAssociation.java