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

com.pulumi.digitalocean.outputs.GetSshKeysResult Maven / Gradle / Ivy

There is a newer version: 4.35.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.digitalocean.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.digitalocean.outputs.GetSshKeysFilter;
import com.pulumi.digitalocean.outputs.GetSshKeysSort;
import com.pulumi.digitalocean.outputs.GetSshKeysSshKey;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetSshKeysResult {
    private @Nullable List filters;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable List sorts;
    /**
     * @return A list of SSH Keys. Each SSH Key has the following attributes:
     * 
     */
    private List sshKeys;

    private GetSshKeysResult() {}
    public List filters() {
        return this.filters == null ? List.of() : this.filters;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public List sorts() {
        return this.sorts == null ? List.of() : this.sorts;
    }
    /**
     * @return A list of SSH Keys. Each SSH Key has the following attributes:
     * 
     */
    public List sshKeys() {
        return this.sshKeys;
    }

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

    public static Builder builder(GetSshKeysResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List filters;
        private String id;
        private @Nullable List sorts;
        private List sshKeys;
        public Builder() {}
        public Builder(GetSshKeysResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filters = defaults.filters;
    	      this.id = defaults.id;
    	      this.sorts = defaults.sorts;
    	      this.sshKeys = defaults.sshKeys;
        }

        @CustomType.Setter
        public Builder filters(@Nullable List filters) {

            this.filters = filters;
            return this;
        }
        public Builder filters(GetSshKeysFilter... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSshKeysResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder sorts(@Nullable List sorts) {

            this.sorts = sorts;
            return this;
        }
        public Builder sorts(GetSshKeysSort... sorts) {
            return sorts(List.of(sorts));
        }
        @CustomType.Setter
        public Builder sshKeys(List sshKeys) {
            if (sshKeys == null) {
              throw new MissingRequiredPropertyException("GetSshKeysResult", "sshKeys");
            }
            this.sshKeys = sshKeys;
            return this;
        }
        public Builder sshKeys(GetSshKeysSshKey... sshKeys) {
            return sshKeys(List.of(sshKeys));
        }
        public GetSshKeysResult build() {
            final var _resultValue = new GetSshKeysResult();
            _resultValue.filters = filters;
            _resultValue.id = id;
            _resultValue.sorts = sorts;
            _resultValue.sshKeys = sshKeys;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy