
com.pulumi.azurenative.awsconnector.outputs.DefaultRetentionResponse Maven / Gradle / Ivy
// *** 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.azurenative.awsconnector.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DefaultRetentionResponse {
/**
* @return The number of days that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.
*
*/
private @Nullable Integer days;
/**
* @return The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.
*
*/
private @Nullable String mode;
/**
* @return The number of years that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.
*
*/
private @Nullable Integer years;
private DefaultRetentionResponse() {}
/**
* @return The number of days that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.
*
*/
public Optional days() {
return Optional.ofNullable(this.days);
}
/**
* @return The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.
*
*/
public Optional mode() {
return Optional.ofNullable(this.mode);
}
/**
* @return The number of years that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.
*
*/
public Optional years() {
return Optional.ofNullable(this.years);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DefaultRetentionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer days;
private @Nullable String mode;
private @Nullable Integer years;
public Builder() {}
public Builder(DefaultRetentionResponse defaults) {
Objects.requireNonNull(defaults);
this.days = defaults.days;
this.mode = defaults.mode;
this.years = defaults.years;
}
@CustomType.Setter
public Builder days(@Nullable Integer days) {
this.days = days;
return this;
}
@CustomType.Setter
public Builder mode(@Nullable String mode) {
this.mode = mode;
return this;
}
@CustomType.Setter
public Builder years(@Nullable Integer years) {
this.years = years;
return this;
}
public DefaultRetentionResponse build() {
final var _resultValue = new DefaultRetentionResponse();
_resultValue.days = days;
_resultValue.mode = mode;
_resultValue.years = years;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy