Interface PutRepositoryPermissionsPolicyRequest.Builder

    • Method Detail

      • domain

        PutRepositoryPermissionsPolicyRequest.Builder domain​(String domain)

        The name of the domain containing the repository to set the resource policy on.

        Parameters:
        domain - The name of the domain containing the repository to set the resource policy on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • domainOwner

        PutRepositoryPermissionsPolicyRequest.Builder domainOwner​(String domainOwner)

        The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

        Parameters:
        domainOwner - The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repository

        PutRepositoryPermissionsPolicyRequest.Builder repository​(String repository)

        The name of the repository to set the resource policy on.

        Parameters:
        repository - The name of the repository to set the resource policy on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyRevision

        PutRepositoryPermissionsPolicyRequest.Builder policyRevision​(String policyRevision)

        Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.

        Parameters:
        policyRevision - Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyDocument

        PutRepositoryPermissionsPolicyRequest.Builder policyDocument​(String policyDocument)

        A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.

        Parameters:
        policyDocument - A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.
        Returns:
        Returns a reference to this object so that method calls can be chained together.