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

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

There is a newer version: 2.78.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.azurenative.sql.outputs.ServerInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetServerTrustGroupResult {
    /**
     * @return Group members information for the server trust group.
     * 
     */
    private List groupMembers;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Trust scope of the server trust group.
     * 
     */
    private List trustScopes;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetServerTrustGroupResult() {}
    /**
     * @return Group members information for the server trust group.
     * 
     */
    public List groupMembers() {
        return this.groupMembers;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Trust scope of the server trust group.
     * 
     */
    public List trustScopes() {
        return this.trustScopes;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetServerTrustGroupResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List groupMembers;
        private String id;
        private String name;
        private List trustScopes;
        private String type;
        public Builder() {}
        public Builder(GetServerTrustGroupResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.groupMembers = defaults.groupMembers;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.trustScopes = defaults.trustScopes;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder groupMembers(List groupMembers) {
            if (groupMembers == null) {
              throw new MissingRequiredPropertyException("GetServerTrustGroupResult", "groupMembers");
            }
            this.groupMembers = groupMembers;
            return this;
        }
        public Builder groupMembers(ServerInfoResponse... groupMembers) {
            return groupMembers(List.of(groupMembers));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetServerTrustGroupResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetServerTrustGroupResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder trustScopes(List trustScopes) {
            if (trustScopes == null) {
              throw new MissingRequiredPropertyException("GetServerTrustGroupResult", "trustScopes");
            }
            this.trustScopes = trustScopes;
            return this;
        }
        public Builder trustScopes(String... trustScopes) {
            return trustScopes(List.of(trustScopes));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetServerTrustGroupResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetServerTrustGroupResult build() {
            final var _resultValue = new GetServerTrustGroupResult();
            _resultValue.groupMembers = groupMembers;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.trustScopes = trustScopes;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy