AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutResourcePolicyResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail
24{
25namespace Model
26{
28 {
29 public:
30 AWS_CLOUDTRAIL_API PutResourcePolicyResult();
33
34
36
40 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
41 inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; }
42 inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); }
43 inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); }
44 inline PutResourcePolicyResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
45 inline PutResourcePolicyResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
46 inline PutResourcePolicyResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
48
50
54 inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
55 inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicy = value; }
56 inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicy = std::move(value); }
57 inline void SetResourcePolicy(const char* value) { m_resourcePolicy.assign(value); }
58 inline PutResourcePolicyResult& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;}
59 inline PutResourcePolicyResult& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;}
60 inline PutResourcePolicyResult& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
62
64
65 inline const Aws::String& GetRequestId() const{ return m_requestId; }
66 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
67 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
68 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
69 inline PutResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
70 inline PutResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
71 inline PutResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
73 private:
74
75 Aws::String m_resourceArn;
76
77 Aws::String m_resourcePolicy;
78
79 Aws::String m_requestId;
80 };
81
82} // namespace Model
83} // namespace CloudTrail
84} // namespace Aws
PutResourcePolicyResult & WithRequestId(const Aws::String &value)
PutResourcePolicyResult & WithRequestId(Aws::String &&value)
PutResourcePolicyResult & WithResourceArn(const Aws::String &value)
PutResourcePolicyResult & WithResourceArn(const char *value)
PutResourcePolicyResult & WithResourcePolicy(const Aws::String &value)
PutResourcePolicyResult & WithResourceArn(Aws::String &&value)
PutResourcePolicyResult & WithRequestId(const char *value)
AWS_CLOUDTRAIL_API PutResourcePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutResourcePolicyResult & WithResourcePolicy(const char *value)
PutResourcePolicyResult & WithResourcePolicy(Aws::String &&value)
AWS_CLOUDTRAIL_API PutResourcePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue