Ejemplo n.º 1
0
 /**
  * The container instance attributes required by your task.
  *
  * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link
  * #setRequiresAttributes(java.util.Collection)} or {@link
  * #withRequiresAttributes(java.util.Collection)} if you want to override the existing values.
  *
  * @param requiresAttributes The container instance attributes required by your task.
  * @return Returns a reference to this object so that method calls can be chained together.
  */
 public TaskDefinition withRequiresAttributes(Attribute... requiresAttributes) {
   if (this.requiresAttributes == null) {
     setRequiresAttributes(
         new com.amazonaws.internal.SdkInternalList<Attribute>(requiresAttributes.length));
   }
   for (Attribute ele : requiresAttributes) {
     this.requiresAttributes.add(ele);
   }
   return this;
 }
Ejemplo n.º 2
0
 /**
  * The container instance attributes required by your task.
  *
  * @param requiresAttributes The container instance attributes required by your task.
  * @return Returns a reference to this object so that method calls can be chained together.
  */
 public TaskDefinition withRequiresAttributes(java.util.Collection<Attribute> requiresAttributes) {
   setRequiresAttributes(requiresAttributes);
   return this;
 }