[fix] OffloadPoliciesImplBuilder missing method and not implements OffloadPolicies.Builder
* org.apache.pulsar.common.policies.data.OffloadPoliciesImplBuilder not implement OffloadPolicies.Builder
and missing the method setS3ManagedLedgerOffloadRoleSessionName
@@ -472,7 +472,7 @@ public class OffloadPoliciesImpl implements Serializable, OffloadPolicies {
return value((String) object, field);
}
- public static class OffloadPoliciesImplBuilder {
+ public static class OffloadPoliciesImplBuilder implements OffloadPolicies.Builder {
private OffloadPoliciesImpl impl = new OffloadPoliciesImpl();
public OffloadPoliciesImplBuilder offloadersDirectory(String offloadersDirectory) {
@@ -550,6 +550,12 @@ public class OffloadPoliciesImpl implements Serializable, OffloadPolicies {
return this;
}
+ @Override
+ public Builder setS3ManagedLedgerOffloadRoleSessionName(String s3ManagedLedgerOffloadRoleSessionName) {
+ impl.s3ManagedLedgerOffloadRoleSessionName = s3ManagedLedgerOffloadRoleSessionName;
+ return this;
+ }
+
public OffloadPoliciesImplBuilder s3ManagedLedgerOffloadRoleSessionName(String s3ManagedLedgerOffloadRoleSessionName) {
impl.s3ManagedLedgerOffloadRoleSessionName = s3ManagedLedgerOffloadRoleSessionName;
return this;
