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

com.pulumi.azurenative.awsconnector.inputs.LifecyclePolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.awsconnector.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of LifecyclePolicy
 * 
 */
public final class LifecyclePolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final LifecyclePolicyArgs Empty = new LifecyclePolicyArgs();

    /**
     * The JSON repository policy text to apply to the repository. The JSON repository policy text to apply to the repository.
     * 
     */
    @Import(name="lifecyclePolicyText")
    private @Nullable Output lifecyclePolicyText;

    /**
     * @return The JSON repository policy text to apply to the repository. The JSON repository policy text to apply to the repository.
     * 
     */
    public Optional> lifecyclePolicyText() {
        return Optional.ofNullable(this.lifecyclePolicyText);
    }

    /**
     * The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
     * 
     */
    @Import(name="registryId")
    private @Nullable Output registryId;

    /**
     * @return The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
     * 
     */
    public Optional> registryId() {
        return Optional.ofNullable(this.registryId);
    }

    /**
     * The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
     * 
     */
    @Import(name="transitionToArchive")
    private @Nullable Output transitionToArchive;

    /**
     * @return The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
     * 
     */
    public Optional> transitionToArchive() {
        return Optional.ofNullable(this.transitionToArchive);
    }

    /**
     * The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
     * 
     */
    @Import(name="transitionToIA")
    private @Nullable Output transitionToIA;

    /**
     * @return The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
     * 
     */
    public Optional> transitionToIA() {
        return Optional.ofNullable(this.transitionToIA);
    }

    /**
     * Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
     * 
     */
    @Import(name="transitionToPrimaryStorageClass")
    private @Nullable Output transitionToPrimaryStorageClass;

    /**
     * @return Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
     * 
     */
    public Optional> transitionToPrimaryStorageClass() {
        return Optional.ofNullable(this.transitionToPrimaryStorageClass);
    }

    private LifecyclePolicyArgs() {}

    private LifecyclePolicyArgs(LifecyclePolicyArgs $) {
        this.lifecyclePolicyText = $.lifecyclePolicyText;
        this.registryId = $.registryId;
        this.transitionToArchive = $.transitionToArchive;
        this.transitionToIA = $.transitionToIA;
        this.transitionToPrimaryStorageClass = $.transitionToPrimaryStorageClass;
    }

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

    public static final class Builder {
        private LifecyclePolicyArgs $;

        public Builder() {
            $ = new LifecyclePolicyArgs();
        }

        public Builder(LifecyclePolicyArgs defaults) {
            $ = new LifecyclePolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param lifecyclePolicyText The JSON repository policy text to apply to the repository. The JSON repository policy text to apply to the repository.
         * 
         * @return builder
         * 
         */
        public Builder lifecyclePolicyText(@Nullable Output lifecyclePolicyText) {
            $.lifecyclePolicyText = lifecyclePolicyText;
            return this;
        }

        /**
         * @param lifecyclePolicyText The JSON repository policy text to apply to the repository. The JSON repository policy text to apply to the repository.
         * 
         * @return builder
         * 
         */
        public Builder lifecyclePolicyText(String lifecyclePolicyText) {
            return lifecyclePolicyText(Output.of(lifecyclePolicyText));
        }

        /**
         * @param registryId The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
         * 
         * @return builder
         * 
         */
        public Builder registryId(@Nullable Output registryId) {
            $.registryId = registryId;
            return this;
        }

        /**
         * @param registryId The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
         * 
         * @return builder
         * 
         */
        public Builder registryId(String registryId) {
            return registryId(Output.of(registryId));
        }

        /**
         * @param transitionToArchive The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
         * 
         * @return builder
         * 
         */
        public Builder transitionToArchive(@Nullable Output transitionToArchive) {
            $.transitionToArchive = transitionToArchive;
            return this;
        }

        /**
         * @param transitionToArchive The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
         * 
         * @return builder
         * 
         */
        public Builder transitionToArchive(String transitionToArchive) {
            return transitionToArchive(Output.of(transitionToArchive));
        }

        /**
         * @param transitionToIA The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
         * 
         * @return builder
         * 
         */
        public Builder transitionToIA(@Nullable Output transitionToIA) {
            $.transitionToIA = transitionToIA;
            return this;
        }

        /**
         * @param transitionToIA The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.
         * 
         * @return builder
         * 
         */
        public Builder transitionToIA(String transitionToIA) {
            return transitionToIA(Output.of(transitionToIA));
        }

        /**
         * @param transitionToPrimaryStorageClass Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
         * 
         * @return builder
         * 
         */
        public Builder transitionToPrimaryStorageClass(@Nullable Output transitionToPrimaryStorageClass) {
            $.transitionToPrimaryStorageClass = transitionToPrimaryStorageClass;
            return this;
        }

        /**
         * @param transitionToPrimaryStorageClass Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.
         * 
         * @return builder
         * 
         */
        public Builder transitionToPrimaryStorageClass(String transitionToPrimaryStorageClass) {
            return transitionToPrimaryStorageClass(Output.of(transitionToPrimaryStorageClass));
        }

        public LifecyclePolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy