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

com.pulumi.digitalocean.outputs.GetAppSpecServiceLogDestinationDatadog 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.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAppSpecServiceLogDestinationDatadog {
    /**
     * @return Datadog API key.
     * 
     */
    private String apiKey;
    /**
     * @return OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
     * 
     */
    private @Nullable String endpoint;

    private GetAppSpecServiceLogDestinationDatadog() {}
    /**
     * @return Datadog API key.
     * 
     */
    public String apiKey() {
        return this.apiKey;
    }
    /**
     * @return OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
     * 
     */
    public Optional endpoint() {
        return Optional.ofNullable(this.endpoint);
    }

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

    public static Builder builder(GetAppSpecServiceLogDestinationDatadog defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String apiKey;
        private @Nullable String endpoint;
        public Builder() {}
        public Builder(GetAppSpecServiceLogDestinationDatadog defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiKey = defaults.apiKey;
    	      this.endpoint = defaults.endpoint;
        }

        @CustomType.Setter
        public Builder apiKey(String apiKey) {
            if (apiKey == null) {
              throw new MissingRequiredPropertyException("GetAppSpecServiceLogDestinationDatadog", "apiKey");
            }
            this.apiKey = apiKey;
            return this;
        }
        @CustomType.Setter
        public Builder endpoint(@Nullable String endpoint) {

            this.endpoint = endpoint;
            return this;
        }
        public GetAppSpecServiceLogDestinationDatadog build() {
            final var _resultValue = new GetAppSpecServiceLogDestinationDatadog();
            _resultValue.apiKey = apiKey;
            _resultValue.endpoint = endpoint;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy