AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
PutDataProtectionPolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs {
23namespace Model {
25 public:
26 AWS_CLOUDWATCHLOGS_API PutDataProtectionPolicyResult() = default;
29
31
34 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
35 template <typename LogGroupIdentifierT = Aws::String>
36 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
37 m_logGroupIdentifierHasBeenSet = true;
38 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
39 }
40 template <typename LogGroupIdentifierT = Aws::String>
42 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
52 template <typename PolicyDocumentT = Aws::String>
53 void SetPolicyDocument(PolicyDocumentT&& value) {
54 m_policyDocumentHasBeenSet = true;
55 m_policyDocument = std::forward<PolicyDocumentT>(value);
56 }
57 template <typename PolicyDocumentT = Aws::String>
59 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
60 return *this;
61 }
63
65
68 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
69 inline void SetLastUpdatedTime(long long value) {
70 m_lastUpdatedTimeHasBeenSet = true;
71 m_lastUpdatedTime = value;
72 }
74 SetLastUpdatedTime(value);
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Aws::String m_logGroupIdentifier;
97
98 Aws::String m_policyDocument;
99
100 long long m_lastUpdatedTime{0};
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_logGroupIdentifierHasBeenSet = false;
105 bool m_policyDocumentHasBeenSet = false;
106 bool m_lastUpdatedTimeHasBeenSet = false;
107 bool m_requestIdHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CloudWatchLogs
112} // namespace Aws
PutDataProtectionPolicyResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHLOGS_API PutDataProtectionPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutDataProtectionPolicyResult & WithLastUpdatedTime(long long value)
AWS_CLOUDWATCHLOGS_API PutDataProtectionPolicyResult()=default
AWS_CLOUDWATCHLOGS_API PutDataProtectionPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutDataProtectionPolicyResult & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
PutDataProtectionPolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue