Interface AllowedPrincipal.Builder

    • Method Detail

      • principalType

        AllowedPrincipal.Builder principalType​(String principalType)

        The type of principal.

        Parameters:
        principalType - The type of principal.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PrincipalType, PrincipalType
      • principal

        AllowedPrincipal.Builder principal​(String principal)

        The Amazon Resource Name (ARN) of the principal.

        Parameters:
        principal - The Amazon Resource Name (ARN) of the principal.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • servicePermissionId

        AllowedPrincipal.Builder servicePermissionId​(String servicePermissionId)

        The ID of the service permission.

        Parameters:
        servicePermissionId - The ID of the service permission.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        The tags.

        Parameters:
        tags - The tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        AllowedPrincipal.Builder tags​(Tag... tags)

        The tags.

        Parameters:
        tags - The tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        The tags.

        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)
      • serviceId

        AllowedPrincipal.Builder serviceId​(String serviceId)

        The ID of the service.

        Parameters:
        serviceId - The ID of the service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.