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

com.pulumi.alicloud.dfs.outputs.GetAccessRulesRule Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.dfs.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetAccessRulesRule {
    /**
     * @return The resource ID of the Access Group.
     * 
     */
    private String accessGroupId;
    /**
     * @return The ID of the Access Rule.
     * 
     */
    private String accessRuleId;
    /**
     * @return The created time of the Access Rule.
     * 
     */
    private String createTime;
    /**
     * @return The description of the Access Rule.
     * 
     */
    private String description;
    /**
     * @return The resource ID of Access Rule.
     * 
     */
    private String id;
    /**
     * @return The NetworkSegment of the Access Rule.
     * 
     */
    private String networkSegment;
    /**
     * @return The priority of the Access Rule.
     * 
     */
    private Integer priority;
    /**
     * @return RWAccessType of the Access Rule. Valid values: `RDONLY`, `RDWR`.
     * 
     */
    private String rwAccessType;

    private GetAccessRulesRule() {}
    /**
     * @return The resource ID of the Access Group.
     * 
     */
    public String accessGroupId() {
        return this.accessGroupId;
    }
    /**
     * @return The ID of the Access Rule.
     * 
     */
    public String accessRuleId() {
        return this.accessRuleId;
    }
    /**
     * @return The created time of the Access Rule.
     * 
     */
    public String createTime() {
        return this.createTime;
    }
    /**
     * @return The description of the Access Rule.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The resource ID of Access Rule.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The NetworkSegment of the Access Rule.
     * 
     */
    public String networkSegment() {
        return this.networkSegment;
    }
    /**
     * @return The priority of the Access Rule.
     * 
     */
    public Integer priority() {
        return this.priority;
    }
    /**
     * @return RWAccessType of the Access Rule. Valid values: `RDONLY`, `RDWR`.
     * 
     */
    public String rwAccessType() {
        return this.rwAccessType;
    }

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

    public static Builder builder(GetAccessRulesRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String accessGroupId;
        private String accessRuleId;
        private String createTime;
        private String description;
        private String id;
        private String networkSegment;
        private Integer priority;
        private String rwAccessType;
        public Builder() {}
        public Builder(GetAccessRulesRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessGroupId = defaults.accessGroupId;
    	      this.accessRuleId = defaults.accessRuleId;
    	      this.createTime = defaults.createTime;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.networkSegment = defaults.networkSegment;
    	      this.priority = defaults.priority;
    	      this.rwAccessType = defaults.rwAccessType;
        }

        @CustomType.Setter
        public Builder accessGroupId(String accessGroupId) {
            if (accessGroupId == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "accessGroupId");
            }
            this.accessGroupId = accessGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder accessRuleId(String accessRuleId) {
            if (accessRuleId == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "accessRuleId");
            }
            this.accessRuleId = accessRuleId;
            return this;
        }
        @CustomType.Setter
        public Builder createTime(String createTime) {
            if (createTime == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "createTime");
            }
            this.createTime = createTime;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder networkSegment(String networkSegment) {
            if (networkSegment == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "networkSegment");
            }
            this.networkSegment = networkSegment;
            return this;
        }
        @CustomType.Setter
        public Builder priority(Integer priority) {
            if (priority == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "priority");
            }
            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder rwAccessType(String rwAccessType) {
            if (rwAccessType == null) {
              throw new MissingRequiredPropertyException("GetAccessRulesRule", "rwAccessType");
            }
            this.rwAccessType = rwAccessType;
            return this;
        }
        public GetAccessRulesRule build() {
            final var _resultValue = new GetAccessRulesRule();
            _resultValue.accessGroupId = accessGroupId;
            _resultValue.accessRuleId = accessRuleId;
            _resultValue.createTime = createTime;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.networkSegment = networkSegment;
            _resultValue.priority = priority;
            _resultValue.rwAccessType = rwAccessType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy