/** * <p> * A list of aliases. * </p> * * @param aliases * A list of aliases. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAliasesResult withAliases(java.util.Collection<AliasListEntry> aliases) { setAliases(aliases); return this; }
/** * <p> * A list of aliases. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAliases(java.util.Collection)} or {@link #withAliases(java.util.Collection)} if you want to override * the existing values. * </p> * * @param aliases * A list of aliases. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAliasesResult withAliases(AliasListEntry... aliases) { if (this.aliases == null) { setAliases(new com.amazonaws.internal.SdkInternalList<AliasListEntry>(aliases.length)); } for (AliasListEntry ele : aliases) { this.aliases.add(ele); } return this; }
if (context.testExpression("Aliases", targetDepth)) { context.nextToken(); listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>(AliasListEntryJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * A list of aliases. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param aliases <p> * A list of aliases. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListAliasesResult withAliases(java.util.Collection<AliasListEntry> aliases) { setAliases(aliases); return this; }
public ListAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListAliasesResult listAliasesResult = new ListAliasesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Aliases")) { listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>( AliasListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listAliasesResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listAliasesResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listAliasesResult; }
/** * <p> * A list of aliases. * </p> * * @param aliases * A list of aliases. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAliasesResult withAliases(java.util.Collection<AliasListEntry> aliases) { setAliases(aliases); return this; }
/** * <p> * A list of aliases. * </p> * * @param aliases * A list of aliases. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAliasesResult withAliases(java.util.Collection<AliasListEntry> aliases) { setAliases(aliases); return this; }
/** * <p> * A list of key aliases in the user's account. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param aliases <p> * A list of key aliases in the user's account. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListAliasesResult withAliases(java.util.Collection<AliasListEntry> aliases) { setAliases(aliases); return this; }
/** * <p> * A list of aliases. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param aliases <p> * A list of aliases. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListAliasesResult withAliases(java.util.Collection<AliasListEntry> aliases) { setAliases(aliases); return this; }
/** * <p> * A list of aliases. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAliases(java.util.Collection)} or {@link #withAliases(java.util.Collection)} if you want to override * the existing values. * </p> * * @param aliases * A list of aliases. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAliasesResult withAliases(AliasListEntry... aliases) { if (this.aliases == null) { setAliases(new com.amazonaws.internal.SdkInternalList<AliasListEntry>(aliases.length)); } for (AliasListEntry ele : aliases) { this.aliases.add(ele); } return this; }
/** * <p> * A list of aliases. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAliases(java.util.Collection)} or {@link #withAliases(java.util.Collection)} if you want to override * the existing values. * </p> * * @param aliases * A list of aliases. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAliasesResult withAliases(AliasListEntry... aliases) { if (this.aliases == null) { setAliases(new com.amazonaws.internal.SdkInternalList<AliasListEntry>(aliases.length)); } for (AliasListEntry ele : aliases) { this.aliases.add(ele); } return this; }
public ListAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListAliasesResult listAliasesResult = new ListAliasesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Aliases")) { listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>( AliasListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listAliasesResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listAliasesResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listAliasesResult; }
public ListAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListAliasesResult listAliasesResult = new ListAliasesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Aliases")) { listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>( AliasListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listAliasesResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listAliasesResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listAliasesResult; }
if (context.testExpression("Aliases", targetDepth)) { context.nextToken(); listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>(AliasListEntryJsonUnmarshaller.getInstance()).unmarshall(context));
if (context.testExpression("Aliases", targetDepth)) { context.nextToken(); listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>(AliasListEntryJsonUnmarshaller.getInstance()).unmarshall(context));