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

com.pulumi.azurenative.awsconnector.outputs.MaxCountRuleResponse 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.awsconnector.outputs;

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

@CustomType
public final class MaxCountRuleResponse {
    /**
     * @return Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
     * 
     */
    private @Nullable Boolean deleteSourceFromS3;
    /**
     * @return Specify true to apply the rule, or false to disable it.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return Specify the maximum number of application versions to retain.
     * 
     */
    private @Nullable Integer maxCount;

    private MaxCountRuleResponse() {}
    /**
     * @return Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
     * 
     */
    public Optional deleteSourceFromS3() {
        return Optional.ofNullable(this.deleteSourceFromS3);
    }
    /**
     * @return Specify true to apply the rule, or false to disable it.
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return Specify the maximum number of application versions to retain.
     * 
     */
    public Optional maxCount() {
        return Optional.ofNullable(this.maxCount);
    }

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

    public static Builder builder(MaxCountRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean deleteSourceFromS3;
        private @Nullable Boolean enabled;
        private @Nullable Integer maxCount;
        public Builder() {}
        public Builder(MaxCountRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deleteSourceFromS3 = defaults.deleteSourceFromS3;
    	      this.enabled = defaults.enabled;
    	      this.maxCount = defaults.maxCount;
        }

        @CustomType.Setter
        public Builder deleteSourceFromS3(@Nullable Boolean deleteSourceFromS3) {

            this.deleteSourceFromS3 = deleteSourceFromS3;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder maxCount(@Nullable Integer maxCount) {

            this.maxCount = maxCount;
            return this;
        }
        public MaxCountRuleResponse build() {
            final var _resultValue = new MaxCountRuleResponse();
            _resultValue.deleteSourceFromS3 = deleteSourceFromS3;
            _resultValue.enabled = enabled;
            _resultValue.maxCount = maxCount;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy