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

com.pulumi.azurenative.sql.outputs.GetManagedInstanceLongTermRetentionPolicyResult Maven / Gradle / Ivy

There is a newer version: 2.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.azurenative.sql.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 GetManagedInstanceLongTermRetentionPolicyResult {
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return The monthly retention policy for an LTR backup in an ISO 8601 format.
     * 
     */
    private @Nullable String monthlyRetention;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return The week of year to take the yearly backup in an ISO 8601 format.
     * 
     */
    private @Nullable Integer weekOfYear;
    /**
     * @return The weekly retention policy for an LTR backup in an ISO 8601 format.
     * 
     */
    private @Nullable String weeklyRetention;
    /**
     * @return The yearly retention policy for an LTR backup in an ISO 8601 format.
     * 
     */
    private @Nullable String yearlyRetention;

    private GetManagedInstanceLongTermRetentionPolicyResult() {}
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The monthly retention policy for an LTR backup in an ISO 8601 format.
     * 
     */
    public Optional monthlyRetention() {
        return Optional.ofNullable(this.monthlyRetention);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The week of year to take the yearly backup in an ISO 8601 format.
     * 
     */
    public Optional weekOfYear() {
        return Optional.ofNullable(this.weekOfYear);
    }
    /**
     * @return The weekly retention policy for an LTR backup in an ISO 8601 format.
     * 
     */
    public Optional weeklyRetention() {
        return Optional.ofNullable(this.weeklyRetention);
    }
    /**
     * @return The yearly retention policy for an LTR backup in an ISO 8601 format.
     * 
     */
    public Optional yearlyRetention() {
        return Optional.ofNullable(this.yearlyRetention);
    }

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

    public static Builder builder(GetManagedInstanceLongTermRetentionPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private @Nullable String monthlyRetention;
        private String name;
        private String type;
        private @Nullable Integer weekOfYear;
        private @Nullable String weeklyRetention;
        private @Nullable String yearlyRetention;
        public Builder() {}
        public Builder(GetManagedInstanceLongTermRetentionPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.monthlyRetention = defaults.monthlyRetention;
    	      this.name = defaults.name;
    	      this.type = defaults.type;
    	      this.weekOfYear = defaults.weekOfYear;
    	      this.weeklyRetention = defaults.weeklyRetention;
    	      this.yearlyRetention = defaults.yearlyRetention;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetManagedInstanceLongTermRetentionPolicyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder monthlyRetention(@Nullable String monthlyRetention) {

            this.monthlyRetention = monthlyRetention;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetManagedInstanceLongTermRetentionPolicyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetManagedInstanceLongTermRetentionPolicyResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder weekOfYear(@Nullable Integer weekOfYear) {

            this.weekOfYear = weekOfYear;
            return this;
        }
        @CustomType.Setter
        public Builder weeklyRetention(@Nullable String weeklyRetention) {

            this.weeklyRetention = weeklyRetention;
            return this;
        }
        @CustomType.Setter
        public Builder yearlyRetention(@Nullable String yearlyRetention) {

            this.yearlyRetention = yearlyRetention;
            return this;
        }
        public GetManagedInstanceLongTermRetentionPolicyResult build() {
            final var _resultValue = new GetManagedInstanceLongTermRetentionPolicyResult();
            _resultValue.id = id;
            _resultValue.monthlyRetention = monthlyRetention;
            _resultValue.name = name;
            _resultValue.type = type;
            _resultValue.weekOfYear = weekOfYear;
            _resultValue.weeklyRetention = weeklyRetention;
            _resultValue.yearlyRetention = yearlyRetention;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy