AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PutRegistryPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECRRequest.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ECR {
15namespace Model {
16
20 public:
21 AWS_ECR_API PutRegistryPolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PutRegistryPolicy"; }
28
29 AWS_ECR_API Aws::String SerializePayload() const override;
30
32
34
40 inline const Aws::String& GetPolicyText() const { return m_policyText; }
41 inline bool PolicyTextHasBeenSet() const { return m_policyTextHasBeenSet; }
42 template <typename PolicyTextT = Aws::String>
43 void SetPolicyText(PolicyTextT&& value) {
44 m_policyTextHasBeenSet = true;
45 m_policyText = std::forward<PolicyTextT>(value);
46 }
47 template <typename PolicyTextT = Aws::String>
49 SetPolicyText(std::forward<PolicyTextT>(value));
50 return *this;
51 }
53 private:
54 Aws::String m_policyText;
55 bool m_policyTextHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace ECR
60} // namespace Aws
AWS_ECR_API PutRegistryPolicyRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_ECR_API Aws::String SerializePayload() const override
PutRegistryPolicyRequest & WithPolicyText(PolicyTextT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String