public Endpoint withReplicationConfig(ReplicationConfig replicationConfig) {
        setReplicationConfig(replicationConfig);
        return this;
    }
<p>
Whether event replication was enabled or disabled for this endpoint. The default state is <code>ENABLED</code>
which means you must supply a <code>RoleArn</code>. If you don't have a <code>RoleArn</code> or you don't want
event replication enabled, set the state to <code>DISABLED</code>.
</p>

@param replicationConfig
       Whether event replication was enabled or disabled for this endpoint. The default state is
       <code>ENABLED</code> which means you must supply a <code>RoleArn</code>. If you don't have a
       <code>RoleArn</code> or you don't want event replication enabled, set the state to <code>DISABLED</code>.
@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/Endpoint.java