@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachThingPrincipalRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the AttachThingPrincipal operation.
NOOP
Constructor and Description |
---|
AttachThingPrincipalRequest() |
Modifier and Type | Method and Description |
---|---|
AttachThingPrincipalRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPrincipal()
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon
Cognito ID.
|
String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setPrincipal(String principal)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon
Cognito ID.
|
void |
setThingName(String thingName)
The name of the thing.
|
String |
toString()
Returns a string representation of this object.
|
AttachThingPrincipalRequest |
withPrincipal(String principal)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon
Cognito ID.
|
AttachThingPrincipalRequest |
withThingName(String thingName)
The name of the thing.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setThingName(String thingName)
The name of the thing.
thingName
- The name of the thing.public String getThingName()
The name of the thing.
public AttachThingPrincipalRequest withThingName(String thingName)
The name of the thing.
thingName
- The name of the thing.public void setPrincipal(String principal)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
principal
- The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an
Amazon Cognito ID.public String getPrincipal()
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
public AttachThingPrincipalRequest withPrincipal(String principal)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
principal
- The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an
Amazon Cognito ID.public String toString()
toString
in class Object
Object.toString()
public AttachThingPrincipalRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()