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

com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsParametersArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.dlm.inputs;

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


public final class LifecyclePolicyPolicyDetailsParametersArgs extends com.pulumi.resources.ResourceArgs {

    public static final LifecyclePolicyPolicyDetailsParametersArgs Empty = new LifecyclePolicyPolicyDetailsParametersArgs();

    /**
     * Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is `false`.
     * 
     */
    @Import(name="excludeBootVolume")
    private @Nullable Output excludeBootVolume;

    /**
     * @return Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is `false`.
     * 
     */
    public Optional> excludeBootVolume() {
        return Optional.ofNullable(this.excludeBootVolume);
    }

    /**
     * Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. `true` indicates that targeted instances are not rebooted when the policy runs. `false` indicates that target instances are rebooted when the policy runs. The default is `true` (instances are not rebooted).
     * 
     */
    @Import(name="noReboot")
    private @Nullable Output noReboot;

    /**
     * @return Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. `true` indicates that targeted instances are not rebooted when the policy runs. `false` indicates that target instances are rebooted when the policy runs. The default is `true` (instances are not rebooted).
     * 
     */
    public Optional> noReboot() {
        return Optional.ofNullable(this.noReboot);
    }

    private LifecyclePolicyPolicyDetailsParametersArgs() {}

    private LifecyclePolicyPolicyDetailsParametersArgs(LifecyclePolicyPolicyDetailsParametersArgs $) {
        this.excludeBootVolume = $.excludeBootVolume;
        this.noReboot = $.noReboot;
    }

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

    public static final class Builder {
        private LifecyclePolicyPolicyDetailsParametersArgs $;

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

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

        /**
         * @param excludeBootVolume Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is `false`.
         * 
         * @return builder
         * 
         */
        public Builder excludeBootVolume(@Nullable Output excludeBootVolume) {
            $.excludeBootVolume = excludeBootVolume;
            return this;
        }

        /**
         * @param excludeBootVolume Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is `false`.
         * 
         * @return builder
         * 
         */
        public Builder excludeBootVolume(Boolean excludeBootVolume) {
            return excludeBootVolume(Output.of(excludeBootVolume));
        }

        /**
         * @param noReboot Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. `true` indicates that targeted instances are not rebooted when the policy runs. `false` indicates that target instances are rebooted when the policy runs. The default is `true` (instances are not rebooted).
         * 
         * @return builder
         * 
         */
        public Builder noReboot(@Nullable Output noReboot) {
            $.noReboot = noReboot;
            return this;
        }

        /**
         * @param noReboot Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. `true` indicates that targeted instances are not rebooted when the policy runs. `false` indicates that target instances are rebooted when the policy runs. The default is `true` (instances are not rebooted).
         * 
         * @return builder
         * 
         */
        public Builder noReboot(Boolean noReboot) {
            return noReboot(Output.of(noReboot));
        }

        public LifecyclePolicyPolicyDetailsParametersArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy