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

com.pulumi.azurenative.digitaltwins.outputs.EventGridResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.digitaltwins.outputs;

import com.pulumi.azurenative.digitaltwins.outputs.ManagedIdentityReferenceResponse;
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 EventGridResponse {
    /**
     * @return EventGrid secondary accesskey. Will be obfuscated during read.
     * 
     */
    private String accessKey1;
    /**
     * @return EventGrid secondary accesskey. Will be obfuscated during read.
     * 
     */
    private @Nullable String accessKey2;
    /**
     * @return Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
     * 
     */
    private @Nullable String authenticationType;
    /**
     * @return Time when the Endpoint was added to DigitalTwinsInstance.
     * 
     */
    private String createdTime;
    /**
     * @return Dead letter storage secret for key-based authentication. Will be obfuscated during read.
     * 
     */
    private @Nullable String deadLetterSecret;
    /**
     * @return Dead letter storage URL for identity-based authentication.
     * 
     */
    private @Nullable String deadLetterUri;
    /**
     * @return The type of Digital Twins endpoint
     * Expected value is 'EventGrid'.
     * 
     */
    private String endpointType;
    /**
     * @return Managed identity properties for the endpoint.
     * 
     */
    private @Nullable ManagedIdentityReferenceResponse identity;
    /**
     * @return The provisioning state.
     * 
     */
    private String provisioningState;
    /**
     * @return EventGrid Topic Endpoint.
     * 
     */
    private String topicEndpoint;

    private EventGridResponse() {}
    /**
     * @return EventGrid secondary accesskey. Will be obfuscated during read.
     * 
     */
    public String accessKey1() {
        return this.accessKey1;
    }
    /**
     * @return EventGrid secondary accesskey. Will be obfuscated during read.
     * 
     */
    public Optional accessKey2() {
        return Optional.ofNullable(this.accessKey2);
    }
    /**
     * @return Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
     * 
     */
    public Optional authenticationType() {
        return Optional.ofNullable(this.authenticationType);
    }
    /**
     * @return Time when the Endpoint was added to DigitalTwinsInstance.
     * 
     */
    public String createdTime() {
        return this.createdTime;
    }
    /**
     * @return Dead letter storage secret for key-based authentication. Will be obfuscated during read.
     * 
     */
    public Optional deadLetterSecret() {
        return Optional.ofNullable(this.deadLetterSecret);
    }
    /**
     * @return Dead letter storage URL for identity-based authentication.
     * 
     */
    public Optional deadLetterUri() {
        return Optional.ofNullable(this.deadLetterUri);
    }
    /**
     * @return The type of Digital Twins endpoint
     * Expected value is 'EventGrid'.
     * 
     */
    public String endpointType() {
        return this.endpointType;
    }
    /**
     * @return Managed identity properties for the endpoint.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return The provisioning state.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return EventGrid Topic Endpoint.
     * 
     */
    public String topicEndpoint() {
        return this.topicEndpoint;
    }

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

    public static Builder builder(EventGridResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String accessKey1;
        private @Nullable String accessKey2;
        private @Nullable String authenticationType;
        private String createdTime;
        private @Nullable String deadLetterSecret;
        private @Nullable String deadLetterUri;
        private String endpointType;
        private @Nullable ManagedIdentityReferenceResponse identity;
        private String provisioningState;
        private String topicEndpoint;
        public Builder() {}
        public Builder(EventGridResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessKey1 = defaults.accessKey1;
    	      this.accessKey2 = defaults.accessKey2;
    	      this.authenticationType = defaults.authenticationType;
    	      this.createdTime = defaults.createdTime;
    	      this.deadLetterSecret = defaults.deadLetterSecret;
    	      this.deadLetterUri = defaults.deadLetterUri;
    	      this.endpointType = defaults.endpointType;
    	      this.identity = defaults.identity;
    	      this.provisioningState = defaults.provisioningState;
    	      this.topicEndpoint = defaults.topicEndpoint;
        }

        @CustomType.Setter
        public Builder accessKey1(String accessKey1) {
            if (accessKey1 == null) {
              throw new MissingRequiredPropertyException("EventGridResponse", "accessKey1");
            }
            this.accessKey1 = accessKey1;
            return this;
        }
        @CustomType.Setter
        public Builder accessKey2(@Nullable String accessKey2) {

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

            this.authenticationType = authenticationType;
            return this;
        }
        @CustomType.Setter
        public Builder createdTime(String createdTime) {
            if (createdTime == null) {
              throw new MissingRequiredPropertyException("EventGridResponse", "createdTime");
            }
            this.createdTime = createdTime;
            return this;
        }
        @CustomType.Setter
        public Builder deadLetterSecret(@Nullable String deadLetterSecret) {

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

            this.deadLetterUri = deadLetterUri;
            return this;
        }
        @CustomType.Setter
        public Builder endpointType(String endpointType) {
            if (endpointType == null) {
              throw new MissingRequiredPropertyException("EventGridResponse", "endpointType");
            }
            this.endpointType = endpointType;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable ManagedIdentityReferenceResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("EventGridResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder topicEndpoint(String topicEndpoint) {
            if (topicEndpoint == null) {
              throw new MissingRequiredPropertyException("EventGridResponse", "topicEndpoint");
            }
            this.topicEndpoint = topicEndpoint;
            return this;
        }
        public EventGridResponse build() {
            final var _resultValue = new EventGridResponse();
            _resultValue.accessKey1 = accessKey1;
            _resultValue.accessKey2 = accessKey2;
            _resultValue.authenticationType = authenticationType;
            _resultValue.createdTime = createdTime;
            _resultValue.deadLetterSecret = deadLetterSecret;
            _resultValue.deadLetterUri = deadLetterUri;
            _resultValue.endpointType = endpointType;
            _resultValue.identity = identity;
            _resultValue.provisioningState = provisioningState;
            _resultValue.topicEndpoint = topicEndpoint;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy