@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListHostKeysResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListHostKeysResult() |
Modifier and Type | Method and Description |
---|---|
ListHostKeysResult |
clone() |
boolean |
equals(Object obj) |
List<ListedHostKey> |
getHostKeys()
Returns an array, where each item contains the details of a host key.
|
String |
getNextToken()
Returns a token that you can use to call
ListHostKeys again and receive additional results, if there
are any. |
String |
getServerId()
Returns the server identifier that contains the listed host keys.
|
int |
hashCode() |
void |
setHostKeys(Collection<ListedHostKey> hostKeys)
Returns an array, where each item contains the details of a host key.
|
void |
setNextToken(String nextToken)
Returns a token that you can use to call
ListHostKeys again and receive additional results, if there
are any. |
void |
setServerId(String serverId)
Returns the server identifier that contains the listed host keys.
|
String |
toString()
Returns a string representation of this object.
|
ListHostKeysResult |
withHostKeys(Collection<ListedHostKey> hostKeys)
Returns an array, where each item contains the details of a host key.
|
ListHostKeysResult |
withHostKeys(ListedHostKey... hostKeys)
Returns an array, where each item contains the details of a host key.
|
ListHostKeysResult |
withNextToken(String nextToken)
Returns a token that you can use to call
ListHostKeys again and receive additional results, if there
are any. |
ListHostKeysResult |
withServerId(String serverId)
Returns the server identifier that contains the listed host keys.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
Returns a token that you can use to call ListHostKeys
again and receive additional results, if there
are any.
nextToken
- Returns a token that you can use to call ListHostKeys
again and receive additional results,
if there are any.public String getNextToken()
Returns a token that you can use to call ListHostKeys
again and receive additional results, if there
are any.
ListHostKeys
again and receive additional results,
if there are any.public ListHostKeysResult withNextToken(String nextToken)
Returns a token that you can use to call ListHostKeys
again and receive additional results, if there
are any.
nextToken
- Returns a token that you can use to call ListHostKeys
again and receive additional results,
if there are any.public void setServerId(String serverId)
Returns the server identifier that contains the listed host keys.
serverId
- Returns the server identifier that contains the listed host keys.public String getServerId()
Returns the server identifier that contains the listed host keys.
public ListHostKeysResult withServerId(String serverId)
Returns the server identifier that contains the listed host keys.
serverId
- Returns the server identifier that contains the listed host keys.public List<ListedHostKey> getHostKeys()
Returns an array, where each item contains the details of a host key.
public void setHostKeys(Collection<ListedHostKey> hostKeys)
Returns an array, where each item contains the details of a host key.
hostKeys
- Returns an array, where each item contains the details of a host key.public ListHostKeysResult withHostKeys(ListedHostKey... hostKeys)
Returns an array, where each item contains the details of a host key.
NOTE: This method appends the values to the existing list (if any). Use
setHostKeys(java.util.Collection)
or withHostKeys(java.util.Collection)
if you want to override
the existing values.
hostKeys
- Returns an array, where each item contains the details of a host key.public ListHostKeysResult withHostKeys(Collection<ListedHostKey> hostKeys)
Returns an array, where each item contains the details of a host key.
hostKeys
- Returns an array, where each item contains the details of a host key.public String toString()
toString
in class Object
Object.toString()
public ListHostKeysResult clone()