public Peering withState(PeeringState state) {
        this.state = state.toString();
        return this;
    }
<p>
The current state of the peering connection.
</p>

@param state
       The current state of the peering connection.
@return Returns a reference to this object so that method calls can be chained together.
@see PeeringState
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/Peering.java