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

com.pulumi.github.outputs.GetActionsEnvironmentSecretsResult Maven / Gradle / Ivy

The 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.github.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.github.outputs.GetActionsEnvironmentSecretsSecret;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetActionsEnvironmentSecretsResult {
    private String environment;
    private String fullName;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Name of the secret
     * 
     */
    private String name;
    /**
     * @return list of secrets for the environment
     * 
     */
    private List secrets;

    private GetActionsEnvironmentSecretsResult() {}
    public String environment() {
        return this.environment;
    }
    public String fullName() {
        return this.fullName;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the secret
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return list of secrets for the environment
     * 
     */
    public List secrets() {
        return this.secrets;
    }

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

    public static Builder builder(GetActionsEnvironmentSecretsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String environment;
        private String fullName;
        private String id;
        private String name;
        private List secrets;
        public Builder() {}
        public Builder(GetActionsEnvironmentSecretsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.environment = defaults.environment;
    	      this.fullName = defaults.fullName;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.secrets = defaults.secrets;
        }

        @CustomType.Setter
        public Builder environment(String environment) {
            if (environment == null) {
              throw new MissingRequiredPropertyException("GetActionsEnvironmentSecretsResult", "environment");
            }
            this.environment = environment;
            return this;
        }
        @CustomType.Setter
        public Builder fullName(String fullName) {
            if (fullName == null) {
              throw new MissingRequiredPropertyException("GetActionsEnvironmentSecretsResult", "fullName");
            }
            this.fullName = fullName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetActionsEnvironmentSecretsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetActionsEnvironmentSecretsResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder secrets(List secrets) {
            if (secrets == null) {
              throw new MissingRequiredPropertyException("GetActionsEnvironmentSecretsResult", "secrets");
            }
            this.secrets = secrets;
            return this;
        }
        public Builder secrets(GetActionsEnvironmentSecretsSecret... secrets) {
            return secrets(List.of(secrets));
        }
        public GetActionsEnvironmentSecretsResult build() {
            final var _resultValue = new GetActionsEnvironmentSecretsResult();
            _resultValue.environment = environment;
            _resultValue.fullName = fullName;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.secrets = secrets;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy