List of usage examples for com.amazonaws.internal ListWithAutoConstructFlag ListWithAutoConstructFlag
public ListWithAutoConstructFlag(int initialCapacity)
From source file:com.github.sjones4.youcan.youserv.model.Filter.java
License:Open Source License
public void setValues(final Collection<String> values) { if (values == null) { this.values = null; return;/*from w w w . j a v a 2 s .com*/ } ListWithAutoConstructFlag<String> valuesCopy = new ListWithAutoConstructFlag<>(values.size()); valuesCopy.addAll(values); this.values = valuesCopy; }
From source file:com.github.sjones4.youcan.youserv.model.ServiceStatus.java
License:Open Source License
public void setServiceAccounts(Collection<ServiceAccount> serviceAccounts) { if (serviceAccounts == null) { this.serviceAccounts = null; return;//from ww w .j a va2s .c om } ListWithAutoConstructFlag<ServiceAccount> serviceAccountsCopy = new ListWithAutoConstructFlag<>( serviceAccounts.size()); serviceAccountsCopy.addAll(serviceAccounts); this.serviceAccounts = serviceAccountsCopy; }
From source file:com.github.sjones4.youcan.youtwo.model.DescribeInstanceTypesRequest.java
License:Open Source License
public void setInstanceTypes(Collection<String> instanceTypes) { if (instanceTypes == null) { this.instanceTypes = null; return;//from www . j a va2 s . c o m } ListWithAutoConstructFlag<String> instanceTypesCopy = new ListWithAutoConstructFlag<>(instanceTypes.size()); instanceTypesCopy.addAll(instanceTypes); this.instanceTypes = instanceTypesCopy; }
From source file:com.github.sjones4.youcan.youtwo.model.DescribeInstanceTypesRequest.java
License:Open Source License
public DescribeInstanceTypesRequest withInstanceTypes(Collection<String> instanceTypes) { if (instanceTypes == null) { this.instanceTypes = null; } else {/* w w w. ja v a2 s.co m*/ ListWithAutoConstructFlag<String> instanceTypesCopy = new ListWithAutoConstructFlag<>( instanceTypes.size()); instanceTypesCopy.addAll(instanceTypes); this.instanceTypes = instanceTypesCopy; } return this; }
From source file:com.github.sjones4.youcan.youtwo.model.DescribeInstanceTypesResult.java
License:Open Source License
public void setInstanceTypes(Collection<InstanceType> instanceTypes) { if (instanceTypes == null) { this.instanceTypes = null; return;//from w ww .j a v a2 s . co m } ListWithAutoConstructFlag<InstanceType> instanceTypesCopy = new ListWithAutoConstructFlag<>( instanceTypes.size()); instanceTypesCopy.addAll(instanceTypes); this.instanceTypes = instanceTypesCopy; }
From source file:com.github.sjones4.youcan.youtwo.model.DescribeInstanceTypesResult.java
License:Open Source License
public DescribeInstanceTypesResult withInstanceTypes(Collection<InstanceType> instanceTypes) { if (instanceTypes == null) { this.instanceTypes = null; } else {// w w w . j av a 2 s .c o m ListWithAutoConstructFlag<InstanceType> instanceTypesCopy = new ListWithAutoConstructFlag<>( instanceTypes.size()); instanceTypesCopy.addAll(instanceTypes); this.instanceTypes = instanceTypesCopy; } return this; }
From source file:com.github.sjones4.youcan.youtwo.model.InstanceType.java
License:Open Source License
public void setAvailability(Collection<InstanceTypeZoneStatus> availability) { if (availability == null) { this.availability = null; return;//from ww w. ja v a 2 s. com } ListWithAutoConstructFlag<InstanceTypeZoneStatus> availabilityCopy = new ListWithAutoConstructFlag<>( availability.size()); availabilityCopy.addAll(availability); this.availability = availabilityCopy; }
From source file:com.github.sjones4.youcan.youtwo.model.InstanceType.java
License:Open Source License
public InstanceType withAvailability(Collection<InstanceTypeZoneStatus> availability) { if (availability == null) { this.availability = null; } else {/*from w ww. j av a2 s .co m*/ ListWithAutoConstructFlag<InstanceTypeZoneStatus> availabilityCopy = new ListWithAutoConstructFlag<>( availability.size()); availabilityCopy.addAll(availability); this.availability = availabilityCopy; } return this; }
From source file:com.github.sjones4.youcan.youtwo.model.InstanceType.java
License:Open Source License
public void setEphemeralDisk(Collection<InstanceTypeEphemeralDisk> ephemeralDisk) { if (ephemeralDisk == null) { this.ephemeralDisk = null; return;//from w ww. ja v a 2 s . co m } ListWithAutoConstructFlag<InstanceTypeEphemeralDisk> ephemeralDiskCopy = new ListWithAutoConstructFlag<>( ephemeralDisk.size()); ephemeralDiskCopy.addAll(ephemeralDisk); this.ephemeralDisk = ephemeralDiskCopy; }
From source file:com.github.sjones4.youcan.youtwo.model.InstanceType.java
License:Open Source License
public InstanceType withEphemeralDisk(Collection<InstanceTypeEphemeralDisk> ephemeralDisk) { if (ephemeralDisk == null) { this.ephemeralDisk = null; } else {//from ww w . j a va 2 s.com ListWithAutoConstructFlag<InstanceTypeEphemeralDisk> ephemeralDiskCopy = new ListWithAutoConstructFlag<>( ephemeralDisk.size()); ephemeralDiskCopy.addAll(ephemeralDisk); this.ephemeralDisk = ephemeralDiskCopy; } return this; }