AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDataProtectionPolicyResult.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_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 CloudWatchLogs
24{
25namespace Model
26{
28 {
29 public:
30 AWS_CLOUDWATCHLOGS_API GetDataProtectionPolicyResult() = default;
33
34
36
39 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
40 template<typename LogGroupIdentifierT = Aws::String>
41 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value); }
42 template<typename LogGroupIdentifierT = Aws::String>
43 GetDataProtectionPolicyResult& WithLogGroupIdentifier(LogGroupIdentifierT&& value) { SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value)); return *this;}
45
47
50 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
51 template<typename PolicyDocumentT = Aws::String>
52 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
53 template<typename PolicyDocumentT = Aws::String>
54 GetDataProtectionPolicyResult& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
56
58
61 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
62 inline void SetLastUpdatedTime(long long value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
63 inline GetDataProtectionPolicyResult& WithLastUpdatedTime(long long value) { SetLastUpdatedTime(value); return *this;}
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template<typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
71 template<typename RequestIdT = Aws::String>
72 GetDataProtectionPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74 private:
75
76 Aws::String m_logGroupIdentifier;
77 bool m_logGroupIdentifierHasBeenSet = false;
78
79 Aws::String m_policyDocument;
80 bool m_policyDocumentHasBeenSet = false;
81
82 long long m_lastUpdatedTime{0};
83 bool m_lastUpdatedTimeHasBeenSet = false;
84
85 Aws::String m_requestId;
86 bool m_requestIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudWatchLogs
91} // 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