/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The proposed access control configuration for an Amazon ECR repository. You
* can propose a configuration for a new Amazon ECR repository or an existing
* Amazon ECR repository that you own by specifying the Amazon ECR policy. For more
* information, see Repository. If the configuration is for an existing Amazon ECR repository and
* you do not specify the Amazon ECR policy, then the access preview uses the
* existing Amazon ECR policy for the repository. If the access
* preview is for a new resource and you do not specify the policy, then the access
* preview assumes an Amazon ECR repository without a policy. To
* propose deletion of an existing Amazon ECR repository policy, you can specify an
* empty string for the Amazon ECR policy.
See Also:
* AWS
* API Reference
The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline const Aws::String& GetRepositoryPolicy() const{ return m_repositoryPolicy; } /** *The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; } /** *The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline void SetRepositoryPolicy(const Aws::String& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = value; } /** *The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline void SetRepositoryPolicy(Aws::String&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::move(value); } /** *The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline void SetRepositoryPolicy(const char* value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy.assign(value); } /** *The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline EcrRepositoryConfiguration& WithRepositoryPolicy(const Aws::String& value) { SetRepositoryPolicy(value); return *this;} /** *The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline EcrRepositoryConfiguration& WithRepositoryPolicy(Aws::String&& value) { SetRepositoryPolicy(std::move(value)); return *this;} /** *The JSON repository policy text to apply to the Amazon ECR repository. For * more information, see Private * repository policy examples in the Amazon ECR User Guide.
*/ inline EcrRepositoryConfiguration& WithRepositoryPolicy(const char* value) { SetRepositoryPolicy(value); return *this;} private: Aws::String m_repositoryPolicy; bool m_repositoryPolicyHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws