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

com.pulumi.azurenative.logic.outputs.GetWorkflowAccessKeyResult 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.azurenative.logic.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetWorkflowAccessKeyResult {
    /**
     * @return Gets or sets the resource id.
     * 
     */
    private @Nullable String id;
    /**
     * @return Gets the workflow access key name.
     * 
     */
    private String name;
    /**
     * @return Gets or sets the not-after time.
     * 
     */
    private @Nullable String notAfter;
    /**
     * @return Gets or sets the not-before time.
     * 
     */
    private @Nullable String notBefore;
    /**
     * @return Gets the workflow access key type.
     * 
     */
    private String type;

    private GetWorkflowAccessKeyResult() {}
    /**
     * @return Gets or sets the resource id.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Gets the workflow access key name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Gets or sets the not-after time.
     * 
     */
    public Optional notAfter() {
        return Optional.ofNullable(this.notAfter);
    }
    /**
     * @return Gets or sets the not-before time.
     * 
     */
    public Optional notBefore() {
        return Optional.ofNullable(this.notBefore);
    }
    /**
     * @return Gets the workflow access key type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetWorkflowAccessKeyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String id;
        private String name;
        private @Nullable String notAfter;
        private @Nullable String notBefore;
        private String type;
        public Builder() {}
        public Builder(GetWorkflowAccessKeyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.notAfter = defaults.notAfter;
    	      this.notBefore = defaults.notBefore;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder id(@Nullable String id) {

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

            this.notAfter = notAfter;
            return this;
        }
        @CustomType.Setter
        public Builder notBefore(@Nullable String notBefore) {

            this.notBefore = notBefore;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetWorkflowAccessKeyResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetWorkflowAccessKeyResult build() {
            final var _resultValue = new GetWorkflowAccessKeyResult();
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.notAfter = notAfter;
            _resultValue.notBefore = notBefore;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy