All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.containerregistry.outputs.RetentionPolicyResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.containerregistry.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RetentionPolicyResponse {
    /**
     * @return The number of days to retain an untagged manifest after which it gets purged.
     * 
     */
    private @Nullable Integer days;
    /**
     * @return The timestamp when the policy was last updated.
     * 
     */
    private String lastUpdatedTime;
    /**
     * @return The value that indicates whether the policy is enabled or not.
     * 
     */
    private @Nullable String status;

    private RetentionPolicyResponse() {}
    /**
     * @return The number of days to retain an untagged manifest after which it gets purged.
     * 
     */
    public Optional days() {
        return Optional.ofNullable(this.days);
    }
    /**
     * @return The timestamp when the policy was last updated.
     * 
     */
    public String lastUpdatedTime() {
        return this.lastUpdatedTime;
    }
    /**
     * @return The value that indicates whether the policy is enabled or not.
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(RetentionPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer days;
        private String lastUpdatedTime;
        private @Nullable String status;
        public Builder() {}
        public Builder(RetentionPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.days = defaults.days;
    	      this.lastUpdatedTime = defaults.lastUpdatedTime;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder days(@Nullable Integer days) {

            this.days = days;
            return this;
        }
        @CustomType.Setter
        public Builder lastUpdatedTime(String lastUpdatedTime) {
            if (lastUpdatedTime == null) {
              throw new MissingRequiredPropertyException("RetentionPolicyResponse", "lastUpdatedTime");
            }
            this.lastUpdatedTime = lastUpdatedTime;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        public RetentionPolicyResponse build() {
            final var _resultValue = new RetentionPolicyResponse();
            _resultValue.days = days;
            _resultValue.lastUpdatedTime = lastUpdatedTime;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy