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

com.pulumi.aws.backup.outputs.FrameworkControl 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.72.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.aws.backup.outputs;

import com.pulumi.aws.backup.outputs.FrameworkControlInputParameter;
import com.pulumi.aws.backup.outputs.FrameworkControlScope;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FrameworkControl {
    /**
     * @return One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below.
     * 
     */
    private @Nullable List inputParameters;
    /**
     * @return The name of a control. This name is between 1 and 256 characters.
     * 
     */
    private String name;
    /**
     * @return The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans. Detailed below.
     * 
     */
    private @Nullable FrameworkControlScope scope;

    private FrameworkControl() {}
    /**
     * @return One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below.
     * 
     */
    public List inputParameters() {
        return this.inputParameters == null ? List.of() : this.inputParameters;
    }
    /**
     * @return The name of a control. This name is between 1 and 256 characters.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans. Detailed below.
     * 
     */
    public Optional scope() {
        return Optional.ofNullable(this.scope);
    }

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

    public static Builder builder(FrameworkControl defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List inputParameters;
        private String name;
        private @Nullable FrameworkControlScope scope;
        public Builder() {}
        public Builder(FrameworkControl defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.inputParameters = defaults.inputParameters;
    	      this.name = defaults.name;
    	      this.scope = defaults.scope;
        }

        @CustomType.Setter
        public Builder inputParameters(@Nullable List inputParameters) {

            this.inputParameters = inputParameters;
            return this;
        }
        public Builder inputParameters(FrameworkControlInputParameter... inputParameters) {
            return inputParameters(List.of(inputParameters));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("FrameworkControl", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder scope(@Nullable FrameworkControlScope scope) {

            this.scope = scope;
            return this;
        }
        public FrameworkControl build() {
            final var _resultValue = new FrameworkControl();
            _resultValue.inputParameters = inputParameters;
            _resultValue.name = name;
            _resultValue.scope = scope;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy