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

com.pulumi.azurenative.timeseriesinsights.outputs.GetIoTHubEventSourceResult 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.timeseriesinsights.outputs;

import com.pulumi.azurenative.timeseriesinsights.outputs.LocalTimestampResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetIoTHubEventSourceResult {
    /**
     * @return The name of the iot hub's consumer group that holds the partitions from which events will be read.
     * 
     */
    private String consumerGroupName;
    /**
     * @return The time the resource was created.
     * 
     */
    private String creationTime;
    /**
     * @return The resource id of the event source in Azure Resource Manager.
     * 
     */
    private String eventSourceResourceId;
    /**
     * @return Resource Id
     * 
     */
    private String id;
    /**
     * @return The name of the iot hub.
     * 
     */
    private String iotHubName;
    /**
     * @return The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub.
     * 
     */
    private String keyName;
    /**
     * @return The kind of the event source.
     * Expected value is 'Microsoft.IoTHub'.
     * 
     */
    private String kind;
    /**
     * @return An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
     * 
     */
    private @Nullable LocalTimestampResponse localTimestamp;
    /**
     * @return Resource location
     * 
     */
    private String location;
    /**
     * @return Resource name
     * 
     */
    private String name;
    /**
     * @return Provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return Resource tags
     * 
     */
    private @Nullable Map tags;
    /**
     * @return ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.
     * 
     */
    private @Nullable String time;
    /**
     * @return The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
     * 
     */
    private @Nullable String timestampPropertyName;
    /**
     * @return Resource type
     * 
     */
    private String type;

    private GetIoTHubEventSourceResult() {}
    /**
     * @return The name of the iot hub's consumer group that holds the partitions from which events will be read.
     * 
     */
    public String consumerGroupName() {
        return this.consumerGroupName;
    }
    /**
     * @return The time the resource was created.
     * 
     */
    public String creationTime() {
        return this.creationTime;
    }
    /**
     * @return The resource id of the event source in Azure Resource Manager.
     * 
     */
    public String eventSourceResourceId() {
        return this.eventSourceResourceId;
    }
    /**
     * @return Resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the iot hub.
     * 
     */
    public String iotHubName() {
        return this.iotHubName;
    }
    /**
     * @return The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub.
     * 
     */
    public String keyName() {
        return this.keyName;
    }
    /**
     * @return The kind of the event source.
     * Expected value is 'Microsoft.IoTHub'.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
     * 
     */
    public Optional localTimestamp() {
        return Optional.ofNullable(this.localTimestamp);
    }
    /**
     * @return Resource location
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Resource tags
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.
     * 
     */
    public Optional time() {
        return Optional.ofNullable(this.time);
    }
    /**
     * @return The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
     * 
     */
    public Optional timestampPropertyName() {
        return Optional.ofNullable(this.timestampPropertyName);
    }
    /**
     * @return Resource type
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetIoTHubEventSourceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String consumerGroupName;
        private String creationTime;
        private String eventSourceResourceId;
        private String id;
        private String iotHubName;
        private String keyName;
        private String kind;
        private @Nullable LocalTimestampResponse localTimestamp;
        private String location;
        private String name;
        private String provisioningState;
        private @Nullable Map tags;
        private @Nullable String time;
        private @Nullable String timestampPropertyName;
        private String type;
        public Builder() {}
        public Builder(GetIoTHubEventSourceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.consumerGroupName = defaults.consumerGroupName;
    	      this.creationTime = defaults.creationTime;
    	      this.eventSourceResourceId = defaults.eventSourceResourceId;
    	      this.id = defaults.id;
    	      this.iotHubName = defaults.iotHubName;
    	      this.keyName = defaults.keyName;
    	      this.kind = defaults.kind;
    	      this.localTimestamp = defaults.localTimestamp;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.tags = defaults.tags;
    	      this.time = defaults.time;
    	      this.timestampPropertyName = defaults.timestampPropertyName;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder consumerGroupName(String consumerGroupName) {
            if (consumerGroupName == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "consumerGroupName");
            }
            this.consumerGroupName = consumerGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder creationTime(String creationTime) {
            if (creationTime == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "creationTime");
            }
            this.creationTime = creationTime;
            return this;
        }
        @CustomType.Setter
        public Builder eventSourceResourceId(String eventSourceResourceId) {
            if (eventSourceResourceId == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "eventSourceResourceId");
            }
            this.eventSourceResourceId = eventSourceResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder iotHubName(String iotHubName) {
            if (iotHubName == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "iotHubName");
            }
            this.iotHubName = iotHubName;
            return this;
        }
        @CustomType.Setter
        public Builder keyName(String keyName) {
            if (keyName == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "keyName");
            }
            this.keyName = keyName;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder localTimestamp(@Nullable LocalTimestampResponse localTimestamp) {

            this.localTimestamp = localTimestamp;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

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

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

            this.timestampPropertyName = timestampPropertyName;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetIoTHubEventSourceResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetIoTHubEventSourceResult build() {
            final var _resultValue = new GetIoTHubEventSourceResult();
            _resultValue.consumerGroupName = consumerGroupName;
            _resultValue.creationTime = creationTime;
            _resultValue.eventSourceResourceId = eventSourceResourceId;
            _resultValue.id = id;
            _resultValue.iotHubName = iotHubName;
            _resultValue.keyName = keyName;
            _resultValue.kind = kind;
            _resultValue.localTimestamp = localTimestamp;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.tags = tags;
            _resultValue.time = time;
            _resultValue.timestampPropertyName = timestampPropertyName;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy