AWS SDK for C++  0.14.3
AWS SDK for C++
SetRepositoryPolicyResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecr/ECR_EXPORTS.h>
18 
19 namespace Aws
20 {
21 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace ECR
32 {
33 namespace Model
34 {
36  {
37  public:
41 
45  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
46 
50  inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
51 
55  inline void SetRegistryId(Aws::String&& value) { m_registryId = value; }
56 
60  inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
61 
65  inline SetRepositoryPolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
66 
70  inline SetRepositoryPolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
71 
75  inline SetRepositoryPolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
76 
80  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
81 
85  inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
86 
90  inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = value; }
91 
95  inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
96 
100  inline SetRepositoryPolicyResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
101 
105  inline SetRepositoryPolicyResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
106 
110  inline SetRepositoryPolicyResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
111 
115  inline const Aws::String& GetPolicyText() const{ return m_policyText; }
116 
120  inline void SetPolicyText(const Aws::String& value) { m_policyText = value; }
121 
125  inline void SetPolicyText(Aws::String&& value) { m_policyText = value; }
126 
130  inline void SetPolicyText(const char* value) { m_policyText.assign(value); }
131 
135  inline SetRepositoryPolicyResult& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
136 
140  inline SetRepositoryPolicyResult& WithPolicyText(Aws::String&& value) { SetPolicyText(value); return *this;}
141 
145  inline SetRepositoryPolicyResult& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
146 
147  private:
148  Aws::String m_registryId;
149  Aws::String m_repositoryName;
150  Aws::String m_policyText;
151  };
152 
153 } // namespace Model
154 } // namespace ECR
155 } // namespace Aws
SetRepositoryPolicyResult & WithPolicyText(Aws::String &&value)
SetRepositoryPolicyResult & WithRepositoryName(const char *value)
SetRepositoryPolicyResult & WithPolicyText(const Aws::String &value)
SetRepositoryPolicyResult & WithRepositoryName(Aws::String &&value)
SetRepositoryPolicyResult & WithRegistryId(const Aws::String &value)
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:37
SetRepositoryPolicyResult & WithPolicyText(const char *value)
SetRepositoryPolicyResult & WithRegistryId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetRepositoryPolicyResult & WithRepositoryName(const Aws::String &value)
SetRepositoryPolicyResult & WithRegistryId(const char *value)
JSON (JavaScript Object Notation).