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

com.pulumi.wavefront.outputs.GetUserGroupsResult Maven / Gradle / Ivy

// *** 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.wavefront.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.wavefront.outputs.GetUserGroupsUserGroup;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetUserGroupsResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable Integer limit;
    private @Nullable Integer offset;
    /**
     * @return List of user groups.
     * 
     */
    private List userGroups;

    private GetUserGroupsResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Optional limit() {
        return Optional.ofNullable(this.limit);
    }
    public Optional offset() {
        return Optional.ofNullable(this.offset);
    }
    /**
     * @return List of user groups.
     * 
     */
    public List userGroups() {
        return this.userGroups;
    }

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

    public static Builder builder(GetUserGroupsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private @Nullable Integer limit;
        private @Nullable Integer offset;
        private List userGroups;
        public Builder() {}
        public Builder(GetUserGroupsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.limit = defaults.limit;
    	      this.offset = defaults.offset;
    	      this.userGroups = defaults.userGroups;
        }

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

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

            this.offset = offset;
            return this;
        }
        @CustomType.Setter
        public Builder userGroups(List userGroups) {
            if (userGroups == null) {
              throw new MissingRequiredPropertyException("GetUserGroupsResult", "userGroups");
            }
            this.userGroups = userGroups;
            return this;
        }
        public Builder userGroups(GetUserGroupsUserGroup... userGroups) {
            return userGroups(List.of(userGroups));
        }
        public GetUserGroupsResult build() {
            final var _resultValue = new GetUserGroupsResult();
            _resultValue.id = id;
            _resultValue.limit = limit;
            _resultValue.offset = offset;
            _resultValue.userGroups = userGroups;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy