private com.amazonaws.internal.SdkInternalList<IpRange> newIpRangeList(java.util.Collection<String> ipRanges) { com.amazonaws.internal.SdkInternalList<IpRange> ipRangeList = new com.amazonaws.internal.SdkInternalList<IpRange>(ipRanges.size()); for (String ipRange : ipRanges) { ipRangeList.add(newIpRange(ipRange)); } return ipRangeList; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBInstanceReadReplicaRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDiskAttributeList(java.util.Collection)} or {@link #withDiskAttributeList(java.util.Collection)} if * you want to override the existing values. * </p> * * @param diskAttributeList * @return Returns a reference to this object so that method calls can be chained together. */ public Disk withDiskAttributeList(String... diskAttributeList) { if (this.diskAttributeList == null) { setDiskAttributeList(new com.amazonaws.internal.SdkInternalList<String>(diskAttributeList.length)); } for (String ele : diskAttributeList) { this.diskAttributeList.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CopyOptionGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CopyDBParameterGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBSubnetGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setArtifactList(java.util.Collection)} or {@link #withArtifactList(java.util.Collection)} if you want to * override the existing values. * </p> * * @param artifactList * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateJobResult withArtifactList(Artifact... artifactList) { if (this.artifactList == null) { setArtifactList(new com.amazonaws.internal.SdkInternalList<Artifact>(artifactList.length)); } for (Artifact ele : artifactList) { this.artifactList.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttributes(java.util.Collection)} or {@link #withAttributes(java.util.Collection)} if you want to * override the existing values. * </p> * * @param attributes * @return Returns a reference to this object so that method calls can be chained together. */ public DeletableItem withAttributes(Attribute... attributes) { if (this.attributes == null) { setAttributes(new com.amazonaws.internal.SdkInternalList<Attribute>(attributes.length)); } for (Attribute ele : attributes) { this.attributes.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTapeARNs(java.util.Collection)} or {@link #withTapeARNs(java.util.Collection)} if you want to override * the existing values. * </p> * * @param tapeARNs * @return Returns a reference to this object so that method calls can be chained together. */ public ListTapesRequest withTapeARNs(String... tapeARNs) { if (this.tapeARNs == null) { setTapeARNs(new com.amazonaws.internal.SdkInternalList<String>(tapeARNs.length)); } for (String ele : tapeARNs) { this.tapeARNs.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setArtifactList(java.util.Collection)} or {@link #withArtifactList(java.util.Collection)} if you want to * override the existing values. * </p> * * @param artifactList * @return Returns a reference to this object so that method calls can be chained together. */ public GetStatusResult withArtifactList(Artifact... artifactList) { if (this.artifactList == null) { setArtifactList(new com.amazonaws.internal.SdkInternalList<Artifact>(artifactList.length)); } for (Artifact ele : artifactList) { this.artifactList.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDiskIds(java.util.Collection)} or {@link #withDiskIds(java.util.Collection)} if you want to override * the existing values. * </p> * * @param diskIds * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeUploadBufferResult withDiskIds(String... diskIds) { if (this.diskIds == null) { setDiskIds(new com.amazonaws.internal.SdkInternalList<String>(diskIds.length)); } for (String ele : diskIds) { this.diskIds.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBSnapshotRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCommandPlugins(java.util.Collection)} or {@link #withCommandPlugins(java.util.Collection)} if you want * to override the existing values. * </p> * * @param commandPlugins * @return Returns a reference to this object so that method calls can be chained together. */ public CommandInvocation withCommandPlugins(CommandPlugin... commandPlugins) { if (this.commandPlugins == null) { setCommandPlugins(new com.amazonaws.internal.SdkInternalList<CommandPlugin>(commandPlugins.length)); } for (CommandPlugin ele : commandPlugins) { this.commandPlugins.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setVolumeRecoveryPointInfos(java.util.Collection)} or * {@link #withVolumeRecoveryPointInfos(java.util.Collection)} if you want to override the existing values. * </p> * * @param volumeRecoveryPointInfos * @return Returns a reference to this object so that method calls can be chained together. */ public ListVolumeRecoveryPointsResult withVolumeRecoveryPointInfos(VolumeRecoveryPointInfo... volumeRecoveryPointInfos) { if (this.volumeRecoveryPointInfos == null) { setVolumeRecoveryPointInfos(new com.amazonaws.internal.SdkInternalList<VolumeRecoveryPointInfo>(volumeRecoveryPointInfos.length)); } for (VolumeRecoveryPointInfo ele : volumeRecoveryPointInfos) { this.volumeRecoveryPointInfos.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setFieldNames(java.util.Collection)} or {@link #withFieldNames(java.util.Collection)} if you want to * override the existing values. * </p> * * @param fieldNames * @return Returns a reference to this object so that method calls can be chained together. */ public BuildSuggestersResult withFieldNames(String... fieldNames) { if (this.fieldNames == null) { setFieldNames(new com.amazonaws.internal.SdkInternalList<String>(fieldNames.length)); } for (String ele : fieldNames) { this.fieldNames.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setNextInvocations(java.util.Collection)} or {@link #withNextInvocations(java.util.Collection)} if you * want to override the existing values. * </p> * * @param nextInvocations * @return Returns a reference to this object so that method calls can be chained together. */ public SnapshotSchedule withNextInvocations(java.util.Date... nextInvocations) { if (this.nextInvocations == null) { setNextInvocations(new com.amazonaws.internal.SdkInternalList<java.util.Date>(nextInvocations.length)); } for (java.util.Date ele : nextInvocations) { this.nextInvocations.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDisks(java.util.Collection)} or {@link #withDisks(java.util.Collection)} if you want to override the * existing values. * </p> * * @param disks * @return Returns a reference to this object so that method calls can be chained together. */ public ListLocalDisksResult withDisks(Disk... disks) { if (this.disks == null) { setDisks(new com.amazonaws.internal.SdkInternalList<Disk>(disks.length)); } for (Disk ele : disks) { this.disks.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setArtifactList(java.util.Collection)} or {@link #withArtifactList(java.util.Collection)} if you want to * override the existing values. * </p> * * @param artifactList * @return Returns a reference to this object so that method calls can be chained together. */ public CreateJobResult withArtifactList(Artifact... artifactList) { if (this.artifactList == null) { setArtifactList(new com.amazonaws.internal.SdkInternalList<Artifact>(artifactList.length)); } for (Artifact ele : artifactList) { this.artifactList.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterToPointInTimeRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setStorediSCSIVolumes(java.util.Collection)} or {@link #withStorediSCSIVolumes(java.util.Collection)} if * you want to override the existing values. * </p> * * @param storediSCSIVolumes * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorediSCSIVolumesResult withStorediSCSIVolumes(StorediSCSIVolume... storediSCSIVolumes) { if (this.storediSCSIVolumes == null) { setStorediSCSIVolumes(new com.amazonaws.internal.SdkInternalList<StorediSCSIVolume>(storediSCSIVolumes.length)); } for (StorediSCSIVolume ele : storediSCSIVolumes) { this.storediSCSIVolumes.add(ele); } return this; }