public class ListPrincipalPoliciesRequest extends AmazonWebServiceRequest implements java.io.Serializable
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.
Note: This API is deprecated. Please use ListAttachedPolicies instead.
Constructor and Description |
---|
ListPrincipalPoliciesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAscendingOrder()
Specifies the order for results.
|
java.lang.String |
getMarker()
The marker for the next set of results.
|
java.lang.Integer |
getPageSize()
The result page size.
|
java.lang.String |
getPrincipal()
The principal.
|
int |
hashCode() |
java.lang.Boolean |
isAscendingOrder()
Specifies the order for results.
|
void |
setAscendingOrder(java.lang.Boolean ascendingOrder)
Specifies the order for results.
|
void |
setMarker(java.lang.String marker)
The marker for the next set of results.
|
void |
setPageSize(java.lang.Integer pageSize)
The result page size.
|
void |
setPrincipal(java.lang.String principal)
The principal.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListPrincipalPoliciesRequest |
withAscendingOrder(java.lang.Boolean ascendingOrder)
Specifies the order for results.
|
ListPrincipalPoliciesRequest |
withMarker(java.lang.String marker)
The marker for the next set of results.
|
ListPrincipalPoliciesRequest |
withPageSize(java.lang.Integer pageSize)
The result page size.
|
ListPrincipalPoliciesRequest |
withPrincipal(java.lang.String principal)
The principal.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.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).
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 setPrincipal(java.lang.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 ListPrincipalPoliciesRequest withPrincipal(java.lang.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).
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String getMarker()
The marker for the next set of results.
Constraints:
Length: - 1024
Pattern: [A-Za-z0-9+/]+={0,2}
The marker for the next set of results.
public void setMarker(java.lang.String marker)
The marker for the next set of results.
Constraints:
Length: - 1024
Pattern: [A-Za-z0-9+/]+={0,2}
marker
- The marker for the next set of results.
public ListPrincipalPoliciesRequest withMarker(java.lang.String marker)
The marker for the next set of results.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 1024
Pattern: [A-Za-z0-9+/]+={0,2}
marker
- The marker for the next set of results.
public java.lang.Integer getPageSize()
The result page size.
Constraints:
Range: 1 - 250
The result page size.
public void setPageSize(java.lang.Integer pageSize)
The result page size.
Constraints:
Range: 1 - 250
pageSize
- The result page size.
public ListPrincipalPoliciesRequest withPageSize(java.lang.Integer pageSize)
The result page size.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 250
pageSize
- The result page size.
public java.lang.Boolean isAscendingOrder()
Specifies the order for results. If true, results are returned in ascending creation order.
Specifies the order for results. If true, results are returned in ascending creation order.
public java.lang.Boolean getAscendingOrder()
Specifies the order for results. If true, results are returned in ascending creation order.
Specifies the order for results. If true, results are returned in ascending creation order.
public void setAscendingOrder(java.lang.Boolean ascendingOrder)
Specifies the order for results. If true, results are returned in ascending creation order.
ascendingOrder
- Specifies the order for results. If true, results are returned in ascending creation order.
public ListPrincipalPoliciesRequest withAscendingOrder(java.lang.Boolean ascendingOrder)
Specifies the order for results. If true, results are returned in ascending creation order.
Returns a reference to this object so that method calls can be chained together.
ascendingOrder
- Specifies the order for results. If true, results are returned in ascending creation order.
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.