public class AttachThingPrincipalRequest extends AmazonWebServiceRequest implements Serializable
AttachThingPrincipal operation.
Attaches the specified principal to the specified thing.
| Constructor and Description |
|---|
AttachThingPrincipalRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getPrincipal()
The principal (certificate or other credential).
|
String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setPrincipal(String principal)
The principal (certificate or other credential).
|
void |
setThingName(String thingName)
The name of the thing.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachThingPrincipalRequest |
withPrincipal(String principal)
The principal (certificate or other credential).
|
AttachThingPrincipalRequest |
withThingName(String thingName)
The name of the thing.
|
getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic String getThingName()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
public void setThingName(String thingName)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
thingName - The name of the thing.public AttachThingPrincipalRequest withThingName(String thingName)
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.public String getPrincipal()
public void setPrincipal(String principal)
principal - The principal (certificate or other credential).public AttachThingPrincipalRequest withPrincipal(String principal)
Returns a reference to this object so that method calls can be chained together.
principal - The principal (certificate or other credential).public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.