Interface InstanceInfo.Builder

    • Method Detail

      • instanceName

        InstanceInfo.Builder instanceName​(String instanceName)

        The name of the on-premises instance.

        Parameters:
        instanceName - The name of the on-premises instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • iamSessionArn

        InstanceInfo.Builder iamSessionArn​(String iamSessionArn)

        The ARN of the IAM session associated with the on-premises instance.

        Parameters:
        iamSessionArn - The ARN of the IAM session associated with the on-premises instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • iamUserArn

        InstanceInfo.Builder iamUserArn​(String iamUserArn)

        The user ARN associated with the on-premises instance.

        Parameters:
        iamUserArn - The user ARN associated with the on-premises instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceArn

        InstanceInfo.Builder instanceArn​(String instanceArn)

        The ARN of the on-premises instance.

        Parameters:
        instanceArn - The ARN of the on-premises instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • registerTime

        InstanceInfo.Builder registerTime​(Instant registerTime)

        The time at which the on-premises instance was registered.

        Parameters:
        registerTime - The time at which the on-premises instance was registered.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deregisterTime

        InstanceInfo.Builder deregisterTime​(Instant deregisterTime)

        If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.

        Parameters:
        deregisterTime - If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        InstanceInfo.Builder tags​(Collection<Tag> tags)

        The tags currently associated with the on-premises instance.

        Parameters:
        tags - The tags currently associated with the on-premises instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        InstanceInfo.Builder tags​(Tag... tags)

        The tags currently associated with the on-premises instance.

        Parameters:
        tags - The tags currently associated with the on-premises instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        InstanceInfo.Builder tags​(Consumer<Tag.Builder>... tags)

        The tags currently associated with the on-premises instance.

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

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

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