Interface CreateCloudFormationStackRequest.Builder

    • Method Detail

      • instances

        CreateCloudFormationStackRequest.Builder instances​(Collection<InstanceEntry> instances)

        An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.

        Parameters:
        instances - An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instances

        CreateCloudFormationStackRequest.Builder instances​(InstanceEntry... instances)

        An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.

        Parameters:
        instances - An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instances

        CreateCloudFormationStackRequest.Builder instances​(Consumer<InstanceEntry.Builder>... instances)

        An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.

        This is a convenience method that creates an instance of the InstanceEntry.Builder avoiding the need to create one manually via InstanceEntry.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #instances(List).

        Parameters:
        instances - a consumer that will call methods on InstanceEntry.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #instances(java.util.Collection)