public class AttachThingPrincipalRequest extends AmazonWebServiceRequest implements java.io.Serializable
Attaches the specified principal to the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
Constructor and Description |
---|
AttachThingPrincipalRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPrincipal()
The principal, which can be a certificate ARN (as returned from the
CreateCertificate operation) or an Amazon Cognito ID.
|
java.lang.String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setPrincipal(java.lang.String principal)
The principal, which can be a certificate ARN (as returned from the
CreateCertificate operation) or an Amazon Cognito ID.
|
void |
setThingName(java.lang.String thingName)
The name of the thing.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachThingPrincipalRequest |
withPrincipal(java.lang.String principal)
The principal, which can be a certificate ARN (as returned from the
CreateCertificate operation) or an Amazon Cognito ID.
|
AttachThingPrincipalRequest |
withThingName(java.lang.String thingName)
The name of the thing.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getThingName()
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing.
public void setThingName(java.lang.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(java.lang.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 java.lang.String getPrincipal()
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
public void setPrincipal(java.lang.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 AttachThingPrincipalRequest withPrincipal(java.lang.String principal)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Returns a reference to this object so that method calls can be chained together.
principal
- The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
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.