/** * Simplified method form for invoking the ListKeys operation. * * @see #listKeysAsync(ListKeysRequest) */ @Override public java.util.concurrent.Future<ListKeysResult> listKeysAsync() { return listKeysAsync(new ListKeysRequest()); }
/** * <p> * Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not * return more than the specified number of items, but it might return fewer. * </p> * <p> * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a * value, it defaults to 100. * </p> * * @param limit * Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS * does not return more than the specified number of items, but it might return fewer.</p> * <p> * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not * include a value, it defaults to 100. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysRequest withLimit(Integer limit) { setLimit(limit); return this; }
/** * <p> * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the * value of <code>NextMarker</code> from the truncated response you just received. * </p> * * @param marker * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to * the value of <code>NextMarker</code> from the truncated response you just received. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the * value of <code>NextMarker</code> from the truncated response you just received. * </p> * * @param marker * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to * the value of <code>NextMarker</code> from the truncated response you just received. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysRequest withMarker(String marker) { setMarker(marker); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListKeysRequest == false) return false; ListKeysRequest other = (ListKeysRequest) obj; if (other.getLimit() == null ^ this.getLimit() == null) return false; if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; }
/** * Simplified method form for invoking the ListKeys operation with an AsyncHandler. * * @see #listKeysAsync(ListKeysRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListKeysResult> listKeysAsync(com.amazonaws.handlers.AsyncHandler<ListKeysRequest, ListKeysResult> asyncHandler) { return listKeysAsync(new ListKeysRequest(), asyncHandler); }
/** * <p> * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the * value of <code>NextMarker</code> from the truncated response you just received. * </p> * * @param marker * Use this parameter in a subsequent request after you receive a response with truncated results. Set it to * the value of <code>NextMarker</code> from the truncated response you just received. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not * return more than the specified number of items, but it might return fewer. * </p> * <p> * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a * value, it defaults to 100. * </p> * * @param limit * Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS * does not return more than the specified number of items, but it might return fewer.</p> * <p> * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not * include a value, it defaults to 100. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysRequest withLimit(Integer limit) { setLimit(limit); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLimit() != null) sb.append("Limit: ").append(getLimit()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the ListKeys operation with an AsyncHandler. * * @see #listKeysAsync(ListKeysRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListKeysResult> listKeysAsync(com.amazonaws.handlers.AsyncHandler<ListKeysRequest, ListKeysResult> asyncHandler) { return listKeysAsync(new ListKeysRequest(), asyncHandler); }
/** * <p> * Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not * return more than the specified number of items, but it might return fewer. * </p> * <p> * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a * value, it defaults to 100. * </p> * * @param limit * Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS * does not return more than the specified number of items, but it might return fewer.</p> * <p> * This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not * include a value, it defaults to 100. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysRequest withLimit(Integer limit) { setLimit(limit); return this; }
/** * Marshall the given parameter object. */ public void marshall(ListKeysRequest listKeysRequest, ProtocolMarshaller protocolMarshaller) { if (listKeysRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listKeysRequest.getLimit(), LIMIT_BINDING); protocolMarshaller.marshall(listKeysRequest.getMarker(), MARKER_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Simplified method form for invoking the ListKeys operation. * * @see #listKeysAsync(ListKeysRequest) */ @Override public java.util.concurrent.Future<ListKeysResult> listKeysAsync() { return listKeysAsync(new ListKeysRequest()); }
@Override public ListKeysResult listKeys() { return listKeys(new ListKeysRequest()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListKeysRequest == false) return false; ListKeysRequest other = (ListKeysRequest) obj; if (other.getLimit() == null ^ this.getLimit() == null) return false; if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; } }
@Override public ListKeysResult listKeys() { return listKeys(new ListKeysRequest()); }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLimit() != null) sb.append("Limit: " + getLimit() + ","); if (getMarker() != null) sb.append("Marker: " + getMarker()); sb.append("}"); return sb.toString(); }
/** * <p> * Gets a list of all customer master keys (CMKs) in the caller's AWS * account and region. * </p> * * @return listKeysResult The response from the ListKeys service method, as * returned by AWS Key Management Service. * @throws DependencyTimeoutException * @throws KMSInternalException * @throws InvalidMarkerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by AWS * Key Management Service indicating either a problem with the * data in the request, or a server side issue. */ public ListKeysResult listKeys() throws AmazonServiceException, AmazonClientException { ListKeysRequest listKeysRequest = new ListKeysRequest(); return listKeys(listKeysRequest); }