public class DetachThingPrincipalRequest extends AmazonWebServiceRequest implements Serializable
Detaches the specified principal from the specified thing.
| Constructor and Description |
|---|
DetachThingPrincipalRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getPrincipal()
If the principal is a certificate, this value must be ARN of the
certificate.
|
String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setPrincipal(String principal)
If the principal is a certificate, this value must be ARN of the
certificate.
|
void |
setThingName(String thingName)
The name of the thing.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachThingPrincipalRequest |
withPrincipal(String principal)
If the principal is a certificate, this value must be ARN of the
certificate.
|
DetachThingPrincipalRequest |
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 DetachThingPrincipalRequest 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()
If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
public void setPrincipal(String principal)
If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
principal - If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
public DetachThingPrincipalRequest withPrincipal(String principal)
If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
Returns a reference to this object so that method calls can be chained together.
principal - If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.