public SubnetAssociation withState(TransitGatewayMulitcastDomainAssociationState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the subnet association.
</p>

@param state
       The state of the subnet association.
@return Returns a reference to this object so that method calls can be chained together.
@see TransitGatewayMulitcastDomainAssociationState
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SubnetAssociation.java