/** * <p> * A list of customer master keys (CMKs). * </p> * * @param keys * A list of customer master keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withKeys(java.util.Collection<KeyListEntry> keys) { setKeys(keys); return this; }
/** * <p> * A list of customer master keys (CMKs). * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setKeys(java.util.Collection)} or {@link #withKeys(java.util.Collection)} if you want to override the * existing values. * </p> * * @param keys * A list of customer master keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withKeys(KeyListEntry... keys) { if (this.keys == null) { setKeys(new com.amazonaws.internal.SdkInternalList<KeyListEntry>(keys.length)); } for (KeyListEntry ele : keys) { this.keys.add(ele); } return this; }
if (context.testExpression("Keys", targetDepth)) { context.nextToken(); listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>(KeyListEntryJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * A list of customer master keys (CMKs). * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param keys <p> * A list of customer master keys (CMKs). * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListKeysResult withKeys(java.util.Collection<KeyListEntry> keys) { setKeys(keys); return this; }
public ListKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListKeysResult listKeysResult = new ListKeysResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Keys")) { listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>( KeyListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listKeysResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listKeysResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listKeysResult; }
/** * <p> * A list of customer master keys (CMKs). * </p> * * @param keys * A list of customer master keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withKeys(java.util.Collection<KeyListEntry> keys) { setKeys(keys); return this; }
/** * <p> * A list of customer master keys (CMKs). * </p> * * @param keys * A list of customer master keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withKeys(java.util.Collection<KeyListEntry> keys) { setKeys(keys); return this; }
/** * <p> * A list of customer master keys (CMKs). * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param keys <p> * A list of customer master keys (CMKs). * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListKeysResult withKeys(java.util.Collection<KeyListEntry> keys) { setKeys(keys); return this; }
/** * <p> * A list of keys. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param keys <p> * A list of keys. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListKeysResult withKeys(java.util.Collection<KeyListEntry> keys) { setKeys(keys); return this; }
/** * <p> * A list of customer master keys (CMKs). * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setKeys(java.util.Collection)} or {@link #withKeys(java.util.Collection)} if you want to override the * existing values. * </p> * * @param keys * A list of customer master keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withKeys(KeyListEntry... keys) { if (this.keys == null) { setKeys(new com.amazonaws.internal.SdkInternalList<KeyListEntry>(keys.length)); } for (KeyListEntry ele : keys) { this.keys.add(ele); } return this; }
/** * <p> * A list of customer master keys (CMKs). * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setKeys(java.util.Collection)} or {@link #withKeys(java.util.Collection)} if you want to override the * existing values. * </p> * * @param keys * A list of customer master keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withKeys(KeyListEntry... keys) { if (this.keys == null) { setKeys(new com.amazonaws.internal.SdkInternalList<KeyListEntry>(keys.length)); } for (KeyListEntry ele : keys) { this.keys.add(ele); } return this; }
public ListKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListKeysResult listKeysResult = new ListKeysResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Keys")) { listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>( KeyListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listKeysResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listKeysResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listKeysResult; }
public ListKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListKeysResult listKeysResult = new ListKeysResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Keys")) { listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>( KeyListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listKeysResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listKeysResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listKeysResult; }
if (context.testExpression("Keys", targetDepth)) { context.nextToken(); listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>(KeyListEntryJsonUnmarshaller.getInstance()).unmarshall(context));
if (context.testExpression("Keys", targetDepth)) { context.nextToken(); listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>(KeyListEntryJsonUnmarshaller.getInstance()).unmarshall(context));