AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/schemas/Schemas_EXPORTS.h>
8#include <aws/schemas/SchemasRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace Schemas
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_SCHEMAS_API PutResourcePolicyRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; }
38
39 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
40
41 AWS_SCHEMAS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetPolicy() const{ return m_policy; }
49 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
50 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
51 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
52 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
53 inline PutResourcePolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
54 inline PutResourcePolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
55 inline PutResourcePolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
57
59
62 inline const Aws::String& GetRegistryName() const{ return m_registryName; }
63 inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
64 inline void SetRegistryName(const Aws::String& value) { m_registryNameHasBeenSet = true; m_registryName = value; }
65 inline void SetRegistryName(Aws::String&& value) { m_registryNameHasBeenSet = true; m_registryName = std::move(value); }
66 inline void SetRegistryName(const char* value) { m_registryNameHasBeenSet = true; m_registryName.assign(value); }
67 inline PutResourcePolicyRequest& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;}
68 inline PutResourcePolicyRequest& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;}
69 inline PutResourcePolicyRequest& WithRegistryName(const char* value) { SetRegistryName(value); return *this;}
71
73
76 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
77 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
78 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
79 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
80 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
81 inline PutResourcePolicyRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
82 inline PutResourcePolicyRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
83 inline PutResourcePolicyRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
85 private:
86
87 Aws::String m_policy;
88 bool m_policyHasBeenSet = false;
89
90 Aws::String m_registryName;
91 bool m_registryNameHasBeenSet = false;
92
93 Aws::String m_revisionId;
94 bool m_revisionIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Schemas
99} // namespace Aws
PutResourcePolicyRequest & WithRevisionId(const Aws::String &value)
AWS_SCHEMAS_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithRegistryName(const char *value)
PutResourcePolicyRequest & WithRevisionId(const char *value)
PutResourcePolicyRequest & WithPolicy(const Aws::String &value)
PutResourcePolicyRequest & WithRegistryName(Aws::String &&value)
PutResourcePolicyRequest & WithPolicy(const char *value)
PutResourcePolicyRequest & WithRevisionId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutResourcePolicyRequest & WithRegistryName(const Aws::String &value)
PutResourcePolicyRequest & WithPolicy(Aws::String &&value)
AWS_SCHEMAS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String