IoTHubStreamInputDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. streamanalytics. models. StreamInputDataSource - com.
azure. resourcemanager. streamanalytics. models. IoTHubStreamInputDataSource
- com.
- com.
public final class IoTHubStreamInputDataSource
extends StreamInputDataSource
Describes an IoT Hub input data source that contains stream data.
Constructor Summary
| Constructor | Description |
|---|---|
| IoTHubStreamInputDataSource() |
Creates an instance of Io |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
consumerGroupName()
Get the consumer |
| String |
endpoint()
Get the endpoint property: The IoT Hub endpoint to connect to (ie. |
|
static
Io |
fromJson(JsonReader jsonReader)
Reads an instance of Io |
| String |
iotHubNamespace()
Get the iot |
| String |
sharedAccessPolicyKey()
Get the shared |
| String |
sharedAccessPolicyName()
Get the shared |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Indicates the type of input data source containing stream data. |
| void |
validate()
Validates the instance. |
|
Io |
withConsumerGroupName(String consumerGroupName)
Set the consumer |
|
Io |
withEndpoint(String endpoint)
Set the endpoint property: The IoT Hub endpoint to connect to (ie. |
|
Io |
withIotHubNamespace(String iotHubNamespace)
Set the iot |
|
Io |
withSharedAccessPolicyKey(String sharedAccessPolicyKey)
Set the shared |
|
Io |
withSharedAccessPolicyName(String sharedAccessPolicyName)
Set the shared |
Methods inherited from StreamInputDataSource
Methods inherited from java.lang.Object
Constructor Details
IoTHubStreamInputDataSource
public IoTHubStreamInputDataSource()
Creates an instance of IoTHubStreamInputDataSource class.
Method Details
consumerGroupName
public String consumerGroupName()
Get the consumerGroupName property: The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group.
Returns:
endpoint
public String endpoint()
Get the endpoint property: The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.).
Returns:
fromJson
public static IoTHubStreamInputDataSource fromJson(JsonReader jsonReader)
Reads an instance of IoTHubStreamInputDataSource from the JsonReader.
Parameters:
Returns:
Throws:
iotHubNamespace
public String iotHubNamespace()
Get the iotHubNamespace property: The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests.
Returns:
sharedAccessPolicyKey
public String sharedAccessPolicyKey()
Get the sharedAccessPolicyKey property: The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
Returns:
sharedAccessPolicyName
public String sharedAccessPolicyName()
Get the sharedAccessPolicyName property: The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
IoTHubStreamInputDataSource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
Overrides:
IoTHubStreamInputDataSource.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
IoTHubStreamInputDataSource.validate()withConsumerGroupName
public IoTHubStreamInputDataSource withConsumerGroupName(String consumerGroupName)
Set the consumerGroupName property: The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group.
Parameters:
Returns:
withEndpoint
public IoTHubStreamInputDataSource withEndpoint(String endpoint)
Set the endpoint property: The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.).
Parameters:
Returns:
withIotHubNamespace
public IoTHubStreamInputDataSource withIotHubNamespace(String iotHubNamespace)
Set the iotHubNamespace property: The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns:
withSharedAccessPolicyKey
public IoTHubStreamInputDataSource withSharedAccessPolicyKey(String sharedAccessPolicyKey)
Set the sharedAccessPolicyKey property: The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns:
withSharedAccessPolicyName
public IoTHubStreamInputDataSource withSharedAccessPolicyName(String sharedAccessPolicyName)
Set the sharedAccessPolicyName property: The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns: