AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSinkPolicyResult.h
1
6#pragma once
7#include <aws/oam/OAM_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 OAM
24{
25namespace Model
26{
28 {
29 public:
30 AWS_OAM_API PutSinkPolicyResult();
33
34
36
39 inline const Aws::String& GetPolicy() const{ return m_policy; }
40 inline void SetPolicy(const Aws::String& value) { m_policy = value; }
41 inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
42 inline void SetPolicy(const char* value) { m_policy.assign(value); }
43 inline PutSinkPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
44 inline PutSinkPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
45 inline PutSinkPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
47
49
52 inline const Aws::String& GetSinkArn() const{ return m_sinkArn; }
53 inline void SetSinkArn(const Aws::String& value) { m_sinkArn = value; }
54 inline void SetSinkArn(Aws::String&& value) { m_sinkArn = std::move(value); }
55 inline void SetSinkArn(const char* value) { m_sinkArn.assign(value); }
56 inline PutSinkPolicyResult& WithSinkArn(const Aws::String& value) { SetSinkArn(value); return *this;}
57 inline PutSinkPolicyResult& WithSinkArn(Aws::String&& value) { SetSinkArn(std::move(value)); return *this;}
58 inline PutSinkPolicyResult& WithSinkArn(const char* value) { SetSinkArn(value); return *this;}
60
62
66 inline const Aws::String& GetSinkId() const{ return m_sinkId; }
67 inline void SetSinkId(const Aws::String& value) { m_sinkId = value; }
68 inline void SetSinkId(Aws::String&& value) { m_sinkId = std::move(value); }
69 inline void SetSinkId(const char* value) { m_sinkId.assign(value); }
70 inline PutSinkPolicyResult& WithSinkId(const Aws::String& value) { SetSinkId(value); return *this;}
71 inline PutSinkPolicyResult& WithSinkId(Aws::String&& value) { SetSinkId(std::move(value)); return *this;}
72 inline PutSinkPolicyResult& WithSinkId(const char* value) { SetSinkId(value); return *this;}
74
76
77 inline const Aws::String& GetRequestId() const{ return m_requestId; }
78 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
79 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
80 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
81 inline PutSinkPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
82 inline PutSinkPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
83 inline PutSinkPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
85 private:
86
87 Aws::String m_policy;
88
89 Aws::String m_sinkArn;
90
91 Aws::String m_sinkId;
92
93 Aws::String m_requestId;
94 };
95
96} // namespace Model
97} // namespace OAM
98} // namespace Aws
AWS_OAM_API PutSinkPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
PutSinkPolicyResult & WithRequestId(const char *value)
PutSinkPolicyResult & WithPolicy(const Aws::String &value)
PutSinkPolicyResult & WithSinkArn(const Aws::String &value)
PutSinkPolicyResult & WithRequestId(const Aws::String &value)
PutSinkPolicyResult & WithSinkId(const char *value)
AWS_OAM_API PutSinkPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetSinkId() const
PutSinkPolicyResult & WithRequestId(Aws::String &&value)
PutSinkPolicyResult & WithPolicy(Aws::String &&value)
PutSinkPolicyResult & WithSinkArn(const char *value)
const Aws::String & GetSinkArn() const
PutSinkPolicyResult & WithPolicy(const char *value)
PutSinkPolicyResult & WithSinkId(Aws::String &&value)
void SetSinkArn(const Aws::String &value)
void SetSinkId(const Aws::String &value)
PutSinkPolicyResult & WithSinkArn(Aws::String &&value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetPolicy() const
void SetPolicy(const Aws::String &value)
PutSinkPolicyResult & WithSinkId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue