AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace NetworkManager {
15namespace Model {
16
20 public:
21 AWS_NETWORKMANAGER_API PutResourcePolicyRequest() = 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 "PutResourcePolicy"; }
28
29 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
36 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
37 template <typename PolicyDocumentT = Aws::String>
38 void SetPolicyDocument(PolicyDocumentT&& value) {
39 m_policyDocumentHasBeenSet = true;
40 m_policyDocument = std::forward<PolicyDocumentT>(value);
41 }
42 template <typename PolicyDocumentT = Aws::String>
43 PutResourcePolicyRequest& WithPolicyDocument(PolicyDocumentT&& value) {
44 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
54 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
55 template <typename ResourceArnT = Aws::String>
56 void SetResourceArn(ResourceArnT&& value) {
57 m_resourceArnHasBeenSet = true;
58 m_resourceArn = std::forward<ResourceArnT>(value);
59 }
60 template <typename ResourceArnT = Aws::String>
62 SetResourceArn(std::forward<ResourceArnT>(value));
63 return *this;
64 }
66 private:
67 Aws::String m_policyDocument;
68
69 Aws::String m_resourceArn;
70 bool m_policyDocumentHasBeenSet = false;
71 bool m_resourceArnHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace NetworkManager
76} // namespace Aws
virtual const char * GetServiceRequestName() const override
PutResourcePolicyRequest & WithPolicyDocument(PolicyDocumentT &&value)
AWS_NETWORKMANAGER_API PutResourcePolicyRequest()=default
PutResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String