public FailoverConfig withPrimary(Primary primary) {
        setPrimary(primary);
        return this;
    }
<p>
The main Region of the endpoint.
</p>

@param primary
       The main Region of the endpoint.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/FailoverConfig.java