com.pulumi.alicloud.oss.outputs.BucketReplicationProgress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.oss.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BucketReplicationProgress {
/**
* @return The percentage of the replicated historical data. This element is valid only when historical_object_replication is set to enabled.
*
*/
private @Nullable String historicalObject;
/**
* @return The time used to distinguish new data from historical data. Data that is written to the source bucket before the time is replicated to the destination bucket as new data. The value of this element is in GMT.
*
*/
private @Nullable String newObject;
private BucketReplicationProgress() {}
/**
* @return The percentage of the replicated historical data. This element is valid only when historical_object_replication is set to enabled.
*
*/
public Optional historicalObject() {
return Optional.ofNullable(this.historicalObject);
}
/**
* @return The time used to distinguish new data from historical data. Data that is written to the source bucket before the time is replicated to the destination bucket as new data. The value of this element is in GMT.
*
*/
public Optional newObject() {
return Optional.ofNullable(this.newObject);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketReplicationProgress defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String historicalObject;
private @Nullable String newObject;
public Builder() {}
public Builder(BucketReplicationProgress defaults) {
Objects.requireNonNull(defaults);
this.historicalObject = defaults.historicalObject;
this.newObject = defaults.newObject;
}
@CustomType.Setter
public Builder historicalObject(@Nullable String historicalObject) {
this.historicalObject = historicalObject;
return this;
}
@CustomType.Setter
public Builder newObject(@Nullable String newObject) {
this.newObject = newObject;
return this;
}
public BucketReplicationProgress build() {
final var _resultValue = new BucketReplicationProgress();
_resultValue.historicalObject = historicalObject;
_resultValue.newObject = newObject;
return _resultValue;
}
}
}