public class AttachThingPrincipalRequest extends AmazonWebServiceRequest implements Serializable
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, such as a certificate or other credential.
|
String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setPrincipal(String principal)
The principal, such as a 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, such as a certificate or other credential.
|
AttachThingPrincipalRequest |
withThingName(String thingName)
The name of the thing.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getThingName()
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing.
public void setThingName(String thingName)
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The name of the thing.
public AttachThingPrincipalRequest withThingName(String thingName)
The name of the thing.
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()
The principal, such as a certificate or other credential.
The principal, such as a certificate or other credential.
public void setPrincipal(String principal)
The principal, such as a certificate or other credential.
principal - The principal, such as a certificate or other credential.
public AttachThingPrincipalRequest withPrincipal(String principal)
The principal, such as a certificate or other credential.
Returns a reference to this object so that method calls can be chained together.
principal - The principal, such as a certificate or other credential.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.