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

com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetRedisUserResult Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProject.outputs;

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 GetRedisUserResult {
    /**
     * @return Categories of the user.
     * 
     */
    private List categories;
    /**
     * @return Channels of the user.
     * 
     */
    private List channels;
    /**
     * @return See Argument Reference above.
     * 
     */
    private String clusterId;
    /**
     * @return Commands of the user.
     * 
     */
    private List commands;
    /**
     * @return Date of the creation of the user.
     * 
     */
    private String createdAt;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Keys of the user.
     * 
     */
    private List keys;
    /**
     * @return See Argument Reference above.
     * 
     */
    private String name;
    /**
     * @return Current status of the user.
     * 
     */
    private String serviceName;
    /**
     * @return Current status of the user.
     * 
     */
    private String status;

    private GetRedisUserResult() {}
    /**
     * @return Categories of the user.
     * 
     */
    public List categories() {
        return this.categories;
    }
    /**
     * @return Channels of the user.
     * 
     */
    public List channels() {
        return this.channels;
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public String clusterId() {
        return this.clusterId;
    }
    /**
     * @return Commands of the user.
     * 
     */
    public List commands() {
        return this.commands;
    }
    /**
     * @return Date of the creation of the user.
     * 
     */
    public String createdAt() {
        return this.createdAt;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Keys of the user.
     * 
     */
    public List keys() {
        return this.keys;
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Current status of the user.
     * 
     */
    public String serviceName() {
        return this.serviceName;
    }
    /**
     * @return Current status of the user.
     * 
     */
    public String status() {
        return this.status;
    }

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

    public static Builder builder(GetRedisUserResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List categories;
        private List channels;
        private String clusterId;
        private List commands;
        private String createdAt;
        private String id;
        private List keys;
        private String name;
        private String serviceName;
        private String status;
        public Builder() {}
        public Builder(GetRedisUserResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.categories = defaults.categories;
    	      this.channels = defaults.channels;
    	      this.clusterId = defaults.clusterId;
    	      this.commands = defaults.commands;
    	      this.createdAt = defaults.createdAt;
    	      this.id = defaults.id;
    	      this.keys = defaults.keys;
    	      this.name = defaults.name;
    	      this.serviceName = defaults.serviceName;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder categories(List categories) {
            if (categories == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "categories");
            }
            this.categories = categories;
            return this;
        }
        public Builder categories(String... categories) {
            return categories(List.of(categories));
        }
        @CustomType.Setter
        public Builder channels(List channels) {
            if (channels == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "channels");
            }
            this.channels = channels;
            return this;
        }
        public Builder channels(String... channels) {
            return channels(List.of(channels));
        }
        @CustomType.Setter
        public Builder clusterId(String clusterId) {
            if (clusterId == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "clusterId");
            }
            this.clusterId = clusterId;
            return this;
        }
        @CustomType.Setter
        public Builder commands(List commands) {
            if (commands == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "commands");
            }
            this.commands = commands;
            return this;
        }
        public Builder commands(String... commands) {
            return commands(List.of(commands));
        }
        @CustomType.Setter
        public Builder createdAt(String createdAt) {
            if (createdAt == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "createdAt");
            }
            this.createdAt = createdAt;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder keys(List keys) {
            if (keys == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "keys");
            }
            this.keys = keys;
            return this;
        }
        public Builder keys(String... keys) {
            return keys(List.of(keys));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder serviceName(String serviceName) {
            if (serviceName == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "serviceName");
            }
            this.serviceName = serviceName;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetRedisUserResult", "status");
            }
            this.status = status;
            return this;
        }
        public GetRedisUserResult build() {
            final var _resultValue = new GetRedisUserResult();
            _resultValue.categories = categories;
            _resultValue.channels = channels;
            _resultValue.clusterId = clusterId;
            _resultValue.commands = commands;
            _resultValue.createdAt = createdAt;
            _resultValue.id = id;
            _resultValue.keys = keys;
            _resultValue.name = name;
            _resultValue.serviceName = serviceName;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy