Example usage for com.amazonaws.internal ListWithAutoConstructFlag ListWithAutoConstructFlag

List of usage examples for com.amazonaws.internal ListWithAutoConstructFlag ListWithAutoConstructFlag

Introduction

In this page you can find the example usage for com.amazonaws.internal ListWithAutoConstructFlag ListWithAutoConstructFlag.

Prototype

public ListWithAutoConstructFlag(int initialCapacity) 

Source Link

Usage

From source file:com.github.sjones4.youcan.youare.model.ListAccountPoliciesResult.java

License:Open Source License

public void setPolicyNames(Collection<String> policyNames) {
    if (policyNames == null) {
        this.policyNames = null;
        return;//w ww.  ja va  2  s. c o m
    }
    ListWithAutoConstructFlag<String> policyNamesCopy = new ListWithAutoConstructFlag<String>(
            policyNames.size());
    policyNamesCopy.addAll(policyNames);
    this.policyNames = policyNamesCopy;
}

From source file:com.github.sjones4.youcan.youare.model.ListAccountsResult.java

License:Open Source License

public void setAccounts(java.util.Collection<Account> accounts) {
    if (accounts == null) {
        this.accounts = null;
        return;//  www.ja  v a2s .  c o m
    }
    ListWithAutoConstructFlag<Account> accountsCopy = new ListWithAutoConstructFlag<>(accounts.size());
    accountsCopy.addAll(accounts);
    this.accounts = accountsCopy;
}

From source file:com.github.sjones4.youcan.youconfig.model.DescribeComponentsResult.java

License:Open Source License

public void setComponentInfos(Collection<ComponentInfo> componentInfos) {
    if (componentInfos == null) {
        this.componentInfos = null;
        return;//from   ww w .  j av  a  2  s  . c  o m
    }
    ListWithAutoConstructFlag<ComponentInfo> componentInfosCopy = new ListWithAutoConstructFlag<>(
            componentInfos.size());
    componentInfosCopy.addAll(componentInfos);
    this.componentInfos = componentInfosCopy;
}

From source file:com.github.sjones4.youcan.youprop.model.DescribePropertiesRequest.java

License:Open Source License

public void setProperties(final Collection<String> properties) {
    if (properties == null) {
        this.properties = null;
        return;//  w  ww  . j a v a2  s . co m
    }
    ListWithAutoConstructFlag<String> propertiesCopy = new ListWithAutoConstructFlag<>(properties.size());
    propertiesCopy.addAll(properties);
    this.properties = propertiesCopy;
}

From source file:com.github.sjones4.youcan.youprop.model.DescribePropertiesResult.java

License:Open Source License

public void setProperties(Collection<Property> properties) {
    if (properties == null) {
        this.properties = null;
        return;/*w ww. j  ava2 s.  c  o  m*/
    }
    ListWithAutoConstructFlag<Property> propertiesCopy = new ListWithAutoConstructFlag<>(properties.size());
    propertiesCopy.addAll(properties);
    this.properties = propertiesCopy;
}

From source file:com.github.sjones4.youcan.youserv.model.DescribeServiceCertificatesRequest.java

License:Open Source License

public void setFilters(final Collection<Filter> filters) {
    if (filters == null) {
        this.filters = null;
        return;//  www .  j a va2  s. c  om
    }
    ListWithAutoConstructFlag<Filter> filtersCopy = new ListWithAutoConstructFlag<>(filters.size());
    filtersCopy.addAll(filters);
    this.filters = filtersCopy;
}

From source file:com.github.sjones4.youcan.youserv.model.DescribeServiceCertificatesResult.java

License:Open Source License

public void setServiceCertificates(Collection<ServiceCertificate> serviceCertificates) {
    if (serviceCertificates == null) {
        this.serviceCertificates = null;
        return;//w  w  w .j  a  v a  2 s  .  c om
    }
    ListWithAutoConstructFlag<ServiceCertificate> serviceCertificatesCopy = new ListWithAutoConstructFlag<>(
            serviceCertificates.size());
    serviceCertificatesCopy.addAll(serviceCertificates);
    this.serviceCertificates = serviceCertificatesCopy;
}

From source file:com.github.sjones4.youcan.youserv.model.DescribeServicesRequest.java

License:Open Source License

public void setServiceNames(final Collection<String> serviceNames) {
    if (serviceNames == null) {
        this.serviceNames = null;
        return;/*from   w ww  .  ja  v  a  2 s . c om*/
    }
    ListWithAutoConstructFlag<String> serviceNamesCopy = new ListWithAutoConstructFlag<>(serviceNames.size());
    serviceNamesCopy.addAll(serviceNames);
    this.serviceNames = serviceNamesCopy;
}

From source file:com.github.sjones4.youcan.youserv.model.DescribeServicesRequest.java

License:Open Source License

/**
 * Set filters, supported from Eucalyptus 4.2
 *///from w w  w.  jav a  2 s.co m
public void setFilters(final Collection<Filter> filters) {
    if (filters == null) {
        this.filters = null;
        return;
    }
    ListWithAutoConstructFlag<Filter> filtersCopy = new ListWithAutoConstructFlag<>(filters.size());
    filtersCopy.addAll(filters);
    this.filters = filtersCopy;
}

From source file:com.github.sjones4.youcan.youserv.model.DescribeServicesResult.java

License:Open Source License

public void setServiceStatuses(Collection<ServiceStatus> serviceStatuses) {
    if (serviceStatuses == null) {
        this.serviceStatuses = null;
        return;/*from  ww  w . ja  va 2 s . c  om*/
    }
    ListWithAutoConstructFlag<ServiceStatus> serviceStatusesCopy = new ListWithAutoConstructFlag<>(
            serviceStatuses.size());
    serviceStatusesCopy.addAll(serviceStatuses);
    this.serviceStatuses = serviceStatusesCopy;
}