com.ionoscloud.s3.MakeBucketArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ionos-cloud-sdk-s3 Show documentation
Show all versions of ionos-cloud-sdk-s3 Show documentation
IONOS Java SDK for Amazon S3 Compatible Cloud Storage
The newest version!
package com.ionoscloud.s3;
import java.util.Objects;
/** Argument class of {@link ApiAsyncClient#makeBucket} and {@link ApiClient#makeBucket}. */
public class MakeBucketArgs extends BucketArgs {
private boolean objectLock;
public boolean objectLock() {
return objectLock;
}
public static Builder builder() {
return new Builder();
}
/** Argument builder of {@link MakeBucketArgs}. */
public static final class Builder extends BucketArgs.Builder {
public Builder objectLock(boolean objectLock) {
operations.add(args -> args.objectLock = objectLock);
return this;
}
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof MakeBucketArgs)) return false;
if (!super.equals(o)) return false;
MakeBucketArgs that = (MakeBucketArgs) o;
return objectLock == that.objectLock;
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), objectLock);
}
}