@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TestAuthorizationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
TestAuthorizationRequest() |
Modifier and Type | Method and Description |
---|---|
TestAuthorizationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<AuthInfo> |
getAuthInfos()
A list of authorization info objects.
|
String |
getClientId()
The MQTT client ID.
|
String |
getCognitoIdentityPoolId()
The Cognito identity pool ID.
|
List<String> |
getPolicyNamesToAdd()
When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.
|
List<String> |
getPolicyNamesToSkip()
When testing custom authorization, the policies specified here are treated as if they are not attached to the
principal being authorized.
|
String |
getPrincipal()
The principal.
|
int |
hashCode() |
void |
setAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects.
|
void |
setClientId(String clientId)
The MQTT client ID.
|
void |
setCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
|
void |
setPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.
|
void |
setPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the
principal being authorized.
|
void |
setPrincipal(String principal)
The principal.
|
String |
toString()
Returns a string representation of this object.
|
TestAuthorizationRequest |
withAuthInfos(AuthInfo... authInfos)
A list of authorization info objects.
|
TestAuthorizationRequest |
withAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects.
|
TestAuthorizationRequest |
withClientId(String clientId)
The MQTT client ID.
|
TestAuthorizationRequest |
withCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
|
TestAuthorizationRequest |
withPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.
|
TestAuthorizationRequest |
withPolicyNamesToAdd(String... policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.
|
TestAuthorizationRequest |
withPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the
principal being authorized.
|
TestAuthorizationRequest |
withPolicyNamesToSkip(String... policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the
principal being authorized.
|
TestAuthorizationRequest |
withPrincipal(String principal)
The principal.
|
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 setPrincipal(String principal)
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
principal
- The principal. Valid principals are CertificateArn
(arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn
(arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId
(region:id).public String getPrincipal()
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
public TestAuthorizationRequest withPrincipal(String principal)
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
principal
- The principal. Valid principals are CertificateArn
(arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn
(arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId
(region:id).public void setCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
cognitoIdentityPoolId
- The Cognito identity pool ID.public String getCognitoIdentityPoolId()
The Cognito identity pool ID.
public TestAuthorizationRequest withCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
cognitoIdentityPoolId
- The Cognito identity pool ID.public List<AuthInfo> getAuthInfos()
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.
authInfo
object in the list.public void setAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.
authInfos
- A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.public TestAuthorizationRequest withAuthInfos(AuthInfo... authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.
NOTE: This method appends the values to the existing list (if any). Use
setAuthInfos(java.util.Collection)
or withAuthInfos(java.util.Collection)
if you want to
override the existing values.
authInfos
- A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.public TestAuthorizationRequest withAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.
authInfos
- A list of authorization info objects. Simulating authorization will create a response for each
authInfo
object in the list.public void setClientId(String clientId)
The MQTT client ID.
clientId
- The MQTT client ID.public String getClientId()
The MQTT client ID.
public TestAuthorizationRequest withClientId(String clientId)
The MQTT client ID.
clientId
- The MQTT client ID.public List<String> getPolicyNamesToAdd()
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
public void setPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
policyNamesToAdd
- When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.public TestAuthorizationRequest withPolicyNamesToAdd(String... policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyNamesToAdd(java.util.Collection)
or withPolicyNamesToAdd(java.util.Collection)
if you
want to override the existing values.
policyNamesToAdd
- When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.public TestAuthorizationRequest withPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
policyNamesToAdd
- When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.public List<String> getPolicyNamesToSkip()
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
public void setPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
policyNamesToSkip
- When testing custom authorization, the policies specified here are treated as if they are not attached to
the principal being authorized.public TestAuthorizationRequest withPolicyNamesToSkip(String... policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyNamesToSkip(java.util.Collection)
or withPolicyNamesToSkip(java.util.Collection)
if
you want to override the existing values.
policyNamesToSkip
- When testing custom authorization, the policies specified here are treated as if they are not attached to
the principal being authorized.public TestAuthorizationRequest withPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
policyNamesToSkip
- When testing custom authorization, the policies specified here are treated as if they are not attached to
the principal being authorized.public String toString()
toString
in class Object
Object.toString()
public TestAuthorizationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()