DataflowEndpointMqtt Class
- java.
lang. Object - com.
azure. resourcemanager. iotoperations. models. DataflowEndpointMqtt
- com.
Implements
public final class DataflowEndpointMqtt
implements JsonSerializable<DataflowEndpointMqtt>
Broker endpoint properties.
Constructor Summary
| Constructor | Description |
|---|---|
| DataflowEndpointMqtt() |
Creates an instance of Dataflow |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Dataflow |
authentication()
Get the authentication property: authentication properties. |
| String |
clientIdPrefix()
Get the client |
|
Cloud |
cloudEventAttributes()
Get the cloud |
|
static
Dataflow |
fromJson(JsonReader jsonReader)
Reads an instance of Dataflow |
| String |
host()
Get the host property: Host of the Broker in the form of <hostname>:<port>. |
| Integer |
keepAliveSeconds()
Get the keep |
| Integer |
maxInflightMessages()
Get the max |
|
Broker |
protocol()
Get the protocol property: Enable or disable websockets. |
| Integer |
qos()
Get the qos property: Qos for Broker connection. |
|
Mqtt |
retain()
Get the retain property: Whether or not to keep the retain setting. |
| Integer |
sessionExpirySeconds()
Get the session |
|
Tls |
tls()
Get the tls property: TLS configuration. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Dataflow |
withAuthentication(DataflowEndpointMqttAuthentication authentication)
Set the authentication property: authentication properties. |
|
Dataflow |
withClientIdPrefix(String clientIdPrefix)
Set the client |
|
Dataflow |
withCloudEventAttributes(CloudEventAttributeType cloudEventAttributes)
Set the cloud |
|
Dataflow |
withHost(String host)
Set the host property: Host of the Broker in the form of <hostname>:<port>. |
|
Dataflow |
withKeepAliveSeconds(Integer keepAliveSeconds)
Set the keep |
|
Dataflow |
withMaxInflightMessages(Integer maxInflightMessages)
Set the max |
|
Dataflow |
withProtocol(BrokerProtocolType protocol)
Set the protocol property: Enable or disable websockets. |
|
Dataflow |
withQos(Integer qos)
Set the qos property: Qos for Broker connection. |
|
Dataflow |
withRetain(MqttRetainType retain)
Set the retain property: Whether or not to keep the retain setting. |
|
Dataflow |
withSessionExpirySeconds(Integer sessionExpirySeconds)
Set the session |
|
Dataflow |
withTls(TlsProperties tls)
Set the tls property: TLS configuration. |
Methods inherited from java.lang.Object
Constructor Details
DataflowEndpointMqtt
public DataflowEndpointMqtt()
Creates an instance of DataflowEndpointMqtt class.
Method Details
authentication
public DataflowEndpointMqttAuthentication authentication()
Get the authentication property: authentication properties. DEFAULT: kubernetes.audience=aio-internal. NOTE - Enum field only property is allowed.
Returns:
clientIdPrefix
public String clientIdPrefix()
Get the clientIdPrefix property: Client ID prefix. Client ID generated by the dataflow is <prefix>-TBD. Optional; no prefix if omitted.
Returns:
cloudEventAttributes
public CloudEventAttributeType cloudEventAttributes()
Get the cloudEventAttributes property: Cloud event mapping config.
Returns:
fromJson
public static DataflowEndpointMqtt fromJson(JsonReader jsonReader)
Reads an instance of DataflowEndpointMqtt from the JsonReader.
Parameters:
Returns:
Throws:
host
public String host()
Get the host property: Host of the Broker in the form of <hostname>:<port>. Optional; connects to Broker if omitted.
Returns:
keepAliveSeconds
public Integer keepAliveSeconds()
Get the keepAliveSeconds property: Broker KeepAlive for connection in seconds.
Returns:
maxInflightMessages
public Integer maxInflightMessages()
Get the maxInflightMessages property: The max number of messages to keep in flight. For subscribe, this is the receive maximum. For publish, this is the maximum number of messages to send before waiting for an ack.
Returns:
protocol
public BrokerProtocolType protocol()
Get the protocol property: Enable or disable websockets.
Returns:
qos
public Integer qos()
Get the qos property: Qos for Broker connection.
Returns:
retain
public MqttRetainType retain()
Get the retain property: Whether or not to keep the retain setting.
Returns:
sessionExpirySeconds
public Integer sessionExpirySeconds()
Get the sessionExpirySeconds property: Session expiry in seconds.
Returns:
tls
public TlsProperties tls()
Get the tls property: TLS configuration.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAuthentication
public DataflowEndpointMqtt withAuthentication(DataflowEndpointMqttAuthentication authentication)
Set the authentication property: authentication properties. DEFAULT: kubernetes.audience=aio-internal. NOTE - Enum field only property is allowed.
Parameters:
Returns:
withClientIdPrefix
public DataflowEndpointMqtt withClientIdPrefix(String clientIdPrefix)
Set the clientIdPrefix property: Client ID prefix. Client ID generated by the dataflow is <prefix>-TBD. Optional; no prefix if omitted.
Parameters:
Returns:
withCloudEventAttributes
public DataflowEndpointMqtt withCloudEventAttributes(CloudEventAttributeType cloudEventAttributes)
Set the cloudEventAttributes property: Cloud event mapping config.
Parameters:
Returns:
withHost
public DataflowEndpointMqtt withHost(String host)
Set the host property: Host of the Broker in the form of <hostname>:<port>. Optional; connects to Broker if omitted.
Parameters:
Returns:
withKeepAliveSeconds
public DataflowEndpointMqtt withKeepAliveSeconds(Integer keepAliveSeconds)
Set the keepAliveSeconds property: Broker KeepAlive for connection in seconds.
Parameters:
Returns:
withMaxInflightMessages
public DataflowEndpointMqtt withMaxInflightMessages(Integer maxInflightMessages)
Set the maxInflightMessages property: The max number of messages to keep in flight. For subscribe, this is the receive maximum. For publish, this is the maximum number of messages to send before waiting for an ack.
Parameters:
Returns:
withProtocol
public DataflowEndpointMqtt withProtocol(BrokerProtocolType protocol)
Set the protocol property: Enable or disable websockets.
Parameters:
Returns:
withQos
public DataflowEndpointMqtt withQos(Integer qos)
Set the qos property: Qos for Broker connection.
Parameters:
Returns:
withRetain
public DataflowEndpointMqtt withRetain(MqttRetainType retain)
Set the retain property: Whether or not to keep the retain setting.
Parameters:
Returns:
withSessionExpirySeconds
public DataflowEndpointMqtt withSessionExpirySeconds(Integer sessionExpirySeconds)
Set the sessionExpirySeconds property: Session expiry in seconds.
Parameters:
Returns:
withTls
public DataflowEndpointMqtt withTls(TlsProperties tls)
Set the tls property: TLS configuration.
Parameters:
Returns: