public class MqttContext
extends java.lang.Object
implements java.io.Serializable
Specifies the MQTT context to use for the test authorizer request
Constructor and Description |
---|
MqttContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientId()
The value of the
clientId key in an MQTT authorization
request. |
java.nio.ByteBuffer |
getPassword()
The value of the
password key in an MQTT authorization
request. |
java.lang.String |
getUsername()
The value of the
username key in an MQTT authorization
request. |
int |
hashCode() |
void |
setClientId(java.lang.String clientId)
The value of the
clientId key in an MQTT authorization
request. |
void |
setPassword(java.nio.ByteBuffer password)
The value of the
password key in an MQTT authorization
request. |
void |
setUsername(java.lang.String username)
The value of the
username key in an MQTT authorization
request. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MqttContext |
withClientId(java.lang.String clientId)
The value of the
clientId key in an MQTT authorization
request. |
MqttContext |
withPassword(java.nio.ByteBuffer password)
The value of the
password key in an MQTT authorization
request. |
MqttContext |
withUsername(java.lang.String username)
The value of the
username key in an MQTT authorization
request. |
public java.lang.String getUsername()
The value of the username
key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
The value of the username
key in an MQTT
authorization request.
public void setUsername(java.lang.String username)
The value of the username
key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
username
-
The value of the username
key in an MQTT
authorization request.
public MqttContext withUsername(java.lang.String username)
The value of the username
key in an MQTT authorization
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65535
username
-
The value of the username
key in an MQTT
authorization request.
public java.nio.ByteBuffer getPassword()
The value of the password
key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
The value of the password
key in an MQTT
authorization request.
public void setPassword(java.nio.ByteBuffer password)
The value of the password
key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
password
-
The value of the password
key in an MQTT
authorization request.
public MqttContext withPassword(java.nio.ByteBuffer password)
The value of the password
key in an MQTT authorization
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65535
password
-
The value of the password
key in an MQTT
authorization request.
public java.lang.String getClientId()
The value of the clientId
key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
The value of the clientId
key in an MQTT
authorization request.
public void setClientId(java.lang.String clientId)
The value of the clientId
key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
clientId
-
The value of the clientId
key in an MQTT
authorization request.
public MqttContext withClientId(java.lang.String clientId)
The value of the clientId
key in an MQTT authorization
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65535
clientId
-
The value of the clientId
key in an MQTT
authorization request.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.