Class ListHsmsResult
- java.lang.Object
-
- com.amazonaws.services.cloudhsm.model.ListHsmsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ListHsmsResult extends Object implements Serializable, Cloneable
Contains the output of the ListHsms operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListHsmsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListHsmsResult
clone()
boolean
equals(Object obj)
List<String>
getHsmList()
The list of ARNs that identify the HSMs.String
getNextToken()
If not null, more results are available.int
hashCode()
void
setHsmList(Collection<String> hsmList)
The list of ARNs that identify the HSMs.void
setNextToken(String nextToken)
If not null, more results are available.String
toString()
Returns a string representation of this object; useful for testing and debugging.ListHsmsResult
withHsmList(String... hsmList)
The list of ARNs that identify the HSMs.ListHsmsResult
withHsmList(Collection<String> hsmList)
The list of ARNs that identify the HSMs.ListHsmsResult
withNextToken(String nextToken)
If not null, more results are available.
-
-
-
Method Detail
-
getHsmList
public List<String> getHsmList()
The list of ARNs that identify the HSMs.
- Returns:
- The list of ARNs that identify the HSMs.
-
setHsmList
public void setHsmList(Collection<String> hsmList)
The list of ARNs that identify the HSMs.
- Parameters:
hsmList
- The list of ARNs that identify the HSMs.
-
withHsmList
public ListHsmsResult withHsmList(String... hsmList)
The list of ARNs that identify the HSMs.
NOTE: This method appends the values to the existing list (if any). Use
setHsmList(java.util.Collection)
orwithHsmList(java.util.Collection)
if you want to override the existing values.- Parameters:
hsmList
- The list of ARNs that identify the HSMs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withHsmList
public ListHsmsResult withHsmList(Collection<String> hsmList)
The list of ARNs that identify the HSMs.
- Parameters:
hsmList
- The list of ARNs that identify the HSMs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items.
- Parameters:
nextToken
- If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items.
-
getNextToken
public String getNextToken()
If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items.
- Returns:
- If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items.
-
withNextToken
public ListHsmsResult withNextToken(String nextToken)
If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items.
- Parameters:
nextToken
- If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListHsmsResult clone()
-
-