brandboat commented on code in PR #22531:
URL: https://github.com/apache/kafka/pull/22531#discussion_r4736178138
##########
clients/src/main/java/org/apache/kafka/clients/admin/AddRaftVoterOptions.java:
##########
@@ -46,4 +51,48 @@ public AddRaftVoterOptions setClusterId(Optional<String>
clusterId) {
public Optional<String> clusterId() {
return clusterId;
}
+
+ public AddRaftVoterOptions setVoterDirectoryId(Optional<Uuid>
voterDirectoryId) {
+ this.voterDirectoryId = voterDirectoryId;
+ return this;
+ }
+
+ public Optional<Uuid> voterDirectoryId() {
+ return voterDirectoryId;
+ }
+
+ public AddRaftVoterOptions setEndpoints(Set<RaftVoterEndpoint> endpoints) {
+ this.endpoints = endpoints;
Review Comment:
I had the same worry, but I noticed some other options keep the caller's
collection as well, like `CreateDelegationTokenOptions#renewers` and
`DescribeDelegationTokenOptions#owners`. Still, I agree with you, copying is
the right thing here, so I'll update it. Do you think we should align the
others too? I can take care of that in a separate JIRA.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]