コード例 #1
0
 /**
  * Sets the value of the Locations property for this object.
  *
  * <p>Returns a reference to this object so that method calls can be chained together.
  *
  * @param locations The new value for the Locations property for this object.
  * @return A reference to this updated object so that method calls can be chained together.
  */
 public DescribeLocationsResult withLocations(Location... locations) {
   if (getLocations() == null) setLocations(new java.util.ArrayList<Location>(locations.length));
   for (Location value : locations) {
     getLocations().add(value);
   }
   return this;
 }
コード例 #2
0
 /**
  * A list of colocation hubs where network providers have equipment. Most regions have multiple
  * locations available.
  *
  * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link
  * #setLocations(java.util.Collection)} or {@link #withLocations(java.util.Collection)} if you
  * want to override the existing values.
  *
  * @param locations A list of colocation hubs where network providers have equipment. Most regions
  *     have multiple locations available.
  * @return Returns a reference to this object so that method calls can be chained together.
  */
 public DescribeLocationsResult withLocations(Location... locations) {
   if (this.locations == null) {
     setLocations(new com.amazonaws.internal.SdkInternalList<Location>(locations.length));
   }
   for (Location ele : locations) {
     this.locations.add(ele);
   }
   return this;
 }
コード例 #3
0
 /**
  * A list of colocation hubs where network providers have equipment. Most regions have multiple
  * locations available.
  *
  * @param locations A list of colocation hubs where network providers have equipment. Most regions
  *     have multiple locations available.
  * @return Returns a reference to this object so that method calls can be chained together.
  */
 public DescribeLocationsResult withLocations(java.util.Collection<Location> locations) {
   setLocations(locations);
   return this;
 }