public class DeleteThingRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes the specified thing. Returns successfully with no error if the deletion is successful or you specify a thing that doesn't exist.
Constructor and Description |
---|
DeleteThingRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getExpectedVersion()
The expected version of the thing record in the registry.
|
java.lang.String |
getThingName()
The name of the thing to delete.
|
int |
hashCode() |
void |
setExpectedVersion(java.lang.Long expectedVersion)
The expected version of the thing record in the registry.
|
void |
setThingName(java.lang.String thingName)
The name of the thing to delete.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteThingRequest |
withExpectedVersion(java.lang.Long expectedVersion)
The expected version of the thing record in the registry.
|
DeleteThingRequest |
withThingName(java.lang.String thingName)
The name of the thing to delete.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getThingName()
The name of the thing to delete.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing to delete.
public void setThingName(java.lang.String thingName)
The name of the thing to delete.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing to delete.
public DeleteThingRequest withThingName(java.lang.String thingName)
The name of the thing to delete.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing to delete.
public java.lang.Long getExpectedVersion()
The expected version of the thing record in the registry. If the version
of the record in the registry does not match the expected version
specified in the request, the DeleteThing
request is
rejected with a VersionConflictException
.
The expected version of the thing record in the registry. If the
version of the record in the registry does not match the expected
version specified in the request, the DeleteThing
request is rejected with a VersionConflictException
.
public void setExpectedVersion(java.lang.Long expectedVersion)
The expected version of the thing record in the registry. If the version
of the record in the registry does not match the expected version
specified in the request, the DeleteThing
request is
rejected with a VersionConflictException
.
expectedVersion
-
The expected version of the thing record in the registry. If
the version of the record in the registry does not match the
expected version specified in the request, the
DeleteThing
request is rejected with a
VersionConflictException
.
public DeleteThingRequest withExpectedVersion(java.lang.Long expectedVersion)
The expected version of the thing record in the registry. If the version
of the record in the registry does not match the expected version
specified in the request, the DeleteThing
request is
rejected with a VersionConflictException
.
Returns a reference to this object so that method calls can be chained together.
expectedVersion
-
The expected version of the thing record in the registry. If
the version of the record in the registry does not match the
expected version specified in the request, the
DeleteThing
request is rejected with a
VersionConflictException
.
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.