For IntelliJ IDEA and
Android Studio


/** * 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); }
@Override public ListKeysResult listKeys() { return listKeys(new ListKeysRequest()); }
/** * <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; }
/** * 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); } }
/** * <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; }
/** * 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 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; }
/** * 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: ").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); }
/** * 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()); }
/** * Simplified method form for invoking the ListKeys operation. * * @see #listKeysAsync(ListKeysRequest) */ @Override public java.util.concurrent.Future<ListKeysResult> listKeysAsync() { return listKeysAsync(new ListKeysRequest()); }
/** * 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); }