Class ListKeyPoliciesResult
- java.lang.Object
-
- com.amazonaws.services.kms.model.ListKeyPoliciesResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ListKeyPoliciesResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListKeyPoliciesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListKeyPoliciesResultclone()booleanequals(Object obj)StringgetNextMarker()WhenTruncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.List<String>getPolicyNames()A list of policy names.BooleangetTruncated()A flag that indicates whether there are more items in the list.inthashCode()BooleanisTruncated()A flag that indicates whether there are more items in the list.voidsetNextMarker(String nextMarker)WhenTruncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.voidsetPolicyNames(Collection<String> policyNames)A list of policy names.voidsetTruncated(Boolean truncated)A flag that indicates whether there are more items in the list.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListKeyPoliciesResultwithNextMarker(String nextMarker)WhenTruncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.ListKeyPoliciesResultwithPolicyNames(String... policyNames)A list of policy names.ListKeyPoliciesResultwithPolicyNames(Collection<String> policyNames)A list of policy names.ListKeyPoliciesResultwithTruncated(Boolean truncated)A flag that indicates whether there are more items in the list.
-
-
-
Method Detail
-
getPolicyNames
public List<String> getPolicyNames()
A list of policy names. Currently, there is only one policy and it is named "Default".
- Returns:
- A list of policy names. Currently, there is only one policy and it is named "Default".
-
setPolicyNames
public void setPolicyNames(Collection<String> policyNames)
A list of policy names. Currently, there is only one policy and it is named "Default".
- Parameters:
policyNames- A list of policy names. Currently, there is only one policy and it is named "Default".
-
withPolicyNames
public ListKeyPoliciesResult withPolicyNames(String... policyNames)
A list of policy names. Currently, there is only one policy and it is named "Default".
NOTE: This method appends the values to the existing list (if any). Use
setPolicyNames(java.util.Collection)orwithPolicyNames(java.util.Collection)if you want to override the existing values.- Parameters:
policyNames- A list of policy names. Currently, there is only one policy and it is named "Default".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPolicyNames
public ListKeyPoliciesResult withPolicyNames(Collection<String> policyNames)
A list of policy names. Currently, there is only one policy and it is named "Default".
- Parameters:
policyNames- A list of policy names. Currently, there is only one policy and it is named "Default".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextMarker
public void setNextMarker(String nextMarker)
When
Truncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.- Parameters:
nextMarker- WhenTruncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.
-
getNextMarker
public String getNextMarker()
When
Truncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.- Returns:
- When
Truncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.
-
withNextMarker
public ListKeyPoliciesResult withNextMarker(String nextMarker)
When
Truncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.- Parameters:
nextMarker- WhenTruncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTruncated
public void setTruncated(Boolean truncated)
A flag that indicates whether there are more items in the list. If your results were truncated, you can use the
Markerparameter to make a subsequent pagination request to retrieve more items in the list.- Parameters:
truncated- A flag that indicates whether there are more items in the list. If your results were truncated, you can use theMarkerparameter to make a subsequent pagination request to retrieve more items in the list.
-
getTruncated
public Boolean getTruncated()
A flag that indicates whether there are more items in the list. If your results were truncated, you can use the
Markerparameter to make a subsequent pagination request to retrieve more items in the list.- Returns:
- A flag that indicates whether there are more items in the list.
If your results were truncated, you can use the
Markerparameter to make a subsequent pagination request to retrieve more items in the list.
-
withTruncated
public ListKeyPoliciesResult withTruncated(Boolean truncated)
A flag that indicates whether there are more items in the list. If your results were truncated, you can use the
Markerparameter to make a subsequent pagination request to retrieve more items in the list.- Parameters:
truncated- A flag that indicates whether there are more items in the list. If your results were truncated, you can use theMarkerparameter to make a subsequent pagination request to retrieve more items in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isTruncated
public Boolean isTruncated()
A flag that indicates whether there are more items in the list. If your results were truncated, you can use the
Markerparameter to make a subsequent pagination request to retrieve more items in the list.- Returns:
- A flag that indicates whether there are more items in the list.
If your results were truncated, you can use the
Markerparameter to make a subsequent pagination request to retrieve more items in the list.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListKeyPoliciesResult clone()
-
-