@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProvisionDeviceResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ProvisionDeviceResult() |
Modifier and Type | Method and Description |
---|---|
ProvisionDeviceResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The device's ARN.
|
ByteBuffer |
getCertificates()
The device's configuration bundle.
|
String |
getDeviceId()
The device's ID.
|
String |
getIotThingName()
The device's IoT thing name.
|
String |
getStatus()
The device's status.
|
int |
hashCode() |
void |
setArn(String arn)
The device's ARN.
|
void |
setCertificates(ByteBuffer certificates)
The device's configuration bundle.
|
void |
setDeviceId(String deviceId)
The device's ID.
|
void |
setIotThingName(String iotThingName)
The device's IoT thing name.
|
void |
setStatus(String status)
The device's status.
|
String |
toString()
Returns a string representation of this object.
|
ProvisionDeviceResult |
withArn(String arn)
The device's ARN.
|
ProvisionDeviceResult |
withCertificates(ByteBuffer certificates)
The device's configuration bundle.
|
ProvisionDeviceResult |
withDeviceId(String deviceId)
The device's ID.
|
ProvisionDeviceResult |
withIotThingName(String iotThingName)
The device's IoT thing name.
|
ProvisionDeviceResult |
withStatus(DeviceStatus status)
The device's status.
|
ProvisionDeviceResult |
withStatus(String status)
The device's status.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setArn(String arn)
The device's ARN.
arn
- The device's ARN.public String getArn()
The device's ARN.
public ProvisionDeviceResult withArn(String arn)
The device's ARN.
arn
- The device's ARN.public void setCertificates(ByteBuffer certificates)
The device's configuration bundle.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
certificates
- The device's configuration bundle.public ByteBuffer getCertificates()
The device's configuration bundle.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public ProvisionDeviceResult withCertificates(ByteBuffer certificates)
The device's configuration bundle.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
certificates
- The device's configuration bundle.public void setDeviceId(String deviceId)
The device's ID.
deviceId
- The device's ID.public String getDeviceId()
The device's ID.
public ProvisionDeviceResult withDeviceId(String deviceId)
The device's ID.
deviceId
- The device's ID.public void setIotThingName(String iotThingName)
The device's IoT thing name.
iotThingName
- The device's IoT thing name.public String getIotThingName()
The device's IoT thing name.
public ProvisionDeviceResult withIotThingName(String iotThingName)
The device's IoT thing name.
iotThingName
- The device's IoT thing name.public void setStatus(String status)
The device's status.
status
- The device's status.DeviceStatus
public String getStatus()
The device's status.
DeviceStatus
public ProvisionDeviceResult withStatus(String status)
The device's status.
status
- The device's status.DeviceStatus
public ProvisionDeviceResult withStatus(DeviceStatus status)
The device's status.
status
- The device's status.DeviceStatus
public String toString()
toString
in class Object
Object.toString()
public ProvisionDeviceResult clone()