code: @Override
      public SetRepositoryPolicyResult setRepositoryPolicy(SetRepositoryPolicyRequest request) {
          request = beforeClientExecution(request);
          return executeSetRepositoryPolicy(request);
      }
docs: <p>
  Applies a repository policy on a specified repository to control access permissions.
  </p>
  
  @param setRepositoryPolicyRequest
  @return Result of the SetRepositoryPolicy operation returned by the service.
  @throws ServerException
  These errors are usually caused by a server-side issue.
  @throws InvalidParameterException
  The specified parameter is invalid. Review the available parameters for the API request.
  @throws RepositoryNotFoundException
  The specified repository could not be found. Check the spelling of the specified repository and ensure
  that you are performing operations on the correct registry.
  @sample AmazonECR.SetRepositoryPolicy
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicy" target="_top">AWS API
  Documentation</a>