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/xray/XRay_EXPORTS.h>
8#include <aws/xray/XRayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace XRay
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; }
31
32 AWS_XRAY_API Aws::String SerializePayload() const override;
33
34
36
40 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
41 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
42 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
43 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
44 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
45 inline PutResourcePolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
46 inline PutResourcePolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
47 inline PutResourcePolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
49
51
54 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
55 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
56 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
57 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
58 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
59 inline PutResourcePolicyRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
60 inline PutResourcePolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
61 inline PutResourcePolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
63
65
76 inline const Aws::String& GetPolicyRevisionId() const{ return m_policyRevisionId; }
77 inline bool PolicyRevisionIdHasBeenSet() const { return m_policyRevisionIdHasBeenSet; }
78 inline void SetPolicyRevisionId(const Aws::String& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = value; }
79 inline void SetPolicyRevisionId(Aws::String&& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = std::move(value); }
80 inline void SetPolicyRevisionId(const char* value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId.assign(value); }
82 inline PutResourcePolicyRequest& WithPolicyRevisionId(Aws::String&& value) { SetPolicyRevisionId(std::move(value)); return *this;}
83 inline PutResourcePolicyRequest& WithPolicyRevisionId(const char* value) { SetPolicyRevisionId(value); return *this;}
85
87
96 inline bool GetBypassPolicyLockoutCheck() const{ return m_bypassPolicyLockoutCheck; }
97 inline bool BypassPolicyLockoutCheckHasBeenSet() const { return m_bypassPolicyLockoutCheckHasBeenSet; }
98 inline void SetBypassPolicyLockoutCheck(bool value) { m_bypassPolicyLockoutCheckHasBeenSet = true; m_bypassPolicyLockoutCheck = value; }
101 private:
102
103 Aws::String m_policyName;
104 bool m_policyNameHasBeenSet = false;
105
106 Aws::String m_policyDocument;
107 bool m_policyDocumentHasBeenSet = false;
108
109 Aws::String m_policyRevisionId;
110 bool m_policyRevisionIdHasBeenSet = false;
111
112 bool m_bypassPolicyLockoutCheck;
113 bool m_bypassPolicyLockoutCheckHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace XRay
118} // namespace Aws
PutResourcePolicyRequest & WithPolicyRevisionId(const Aws::String &value)
PutResourcePolicyRequest & WithPolicyRevisionId(const char *value)
AWS_XRAY_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithPolicyDocument(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutResourcePolicyRequest & WithPolicyName(const Aws::String &value)
PutResourcePolicyRequest & WithBypassPolicyLockoutCheck(bool value)
PutResourcePolicyRequest & WithPolicyName(Aws::String &&value)
PutResourcePolicyRequest & WithPolicyRevisionId(Aws::String &&value)
PutResourcePolicyRequest & WithPolicyName(const char *value)
PutResourcePolicyRequest & WithPolicyDocument(const char *value)
PutResourcePolicyRequest & WithPolicyDocument(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String