AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetDataProtectionPolicyResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
24 public:
25 AWS_CLOUDWATCHLOGS_API GetDataProtectionPolicyResult() = default;
28
30
33 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
34 template <typename LogGroupIdentifierT = Aws::String>
35 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
36 m_logGroupIdentifierHasBeenSet = true;
37 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
38 }
39 template <typename LogGroupIdentifierT = Aws::String>
41 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
42 return *this;
43 }
45
47
50 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
51 template <typename PolicyDocumentT = Aws::String>
52 void SetPolicyDocument(PolicyDocumentT&& value) {
53 m_policyDocumentHasBeenSet = true;
54 m_policyDocument = std::forward<PolicyDocumentT>(value);
55 }
56 template <typename PolicyDocumentT = Aws::String>
58 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
59 return *this;
60 }
62
64
67 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
68 inline void SetLastUpdatedTime(long long value) {
69 m_lastUpdatedTimeHasBeenSet = true;
70 m_lastUpdatedTime = value;
71 }
73 SetLastUpdatedTime(value);
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_logGroupIdentifier;
94
95 Aws::String m_policyDocument;
96
97 long long m_lastUpdatedTime{0};
98
99 Aws::String m_requestId;
100 bool m_logGroupIdentifierHasBeenSet = false;
101 bool m_policyDocumentHasBeenSet = false;
102 bool m_lastUpdatedTimeHasBeenSet = false;
103 bool m_requestIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CloudWatchLogs
108} // namespace Aws
AWS_CLOUDWATCHLOGS_API GetDataProtectionPolicyResult()=default
GetDataProtectionPolicyResult & WithLastUpdatedTime(long long value)
AWS_CLOUDWATCHLOGS_API GetDataProtectionPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataProtectionPolicyResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHLOGS_API GetDataProtectionPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataProtectionPolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
GetDataProtectionPolicyResult & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue