AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetArchiveRuleResult.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/ArchiveRuleSummary.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
34 {
35 public:
36 AWS_ACCESSANALYZER_API GetArchiveRuleResult();
39
40
42
43 inline const ArchiveRuleSummary& GetArchiveRule() const{ return m_archiveRule; }
44 inline void SetArchiveRule(const ArchiveRuleSummary& value) { m_archiveRule = value; }
45 inline void SetArchiveRule(ArchiveRuleSummary&& value) { m_archiveRule = std::move(value); }
46 inline GetArchiveRuleResult& WithArchiveRule(const ArchiveRuleSummary& value) { SetArchiveRule(value); return *this;}
47 inline GetArchiveRuleResult& WithArchiveRule(ArchiveRuleSummary&& value) { SetArchiveRule(std::move(value)); return *this;}
49
51
52 inline const Aws::String& GetRequestId() const{ return m_requestId; }
53 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
54 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
55 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
56 inline GetArchiveRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
57 inline GetArchiveRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
58 inline GetArchiveRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
60 private:
61
62 ArchiveRuleSummary m_archiveRule;
63
64 Aws::String m_requestId;
65 };
66
67} // namespace Model
68} // namespace AccessAnalyzer
69} // namespace Aws
GetArchiveRuleResult & WithRequestId(const char *value)
GetArchiveRuleResult & WithArchiveRule(ArchiveRuleSummary &&value)
AWS_ACCESSANALYZER_API GetArchiveRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveRuleResult & WithRequestId(const Aws::String &value)
void SetArchiveRule(const ArchiveRuleSummary &value)
GetArchiveRuleResult & WithRequestId(Aws::String &&value)
const ArchiveRuleSummary & GetArchiveRule() const
AWS_ACCESSANALYZER_API GetArchiveRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveRuleResult & WithArchiveRule(const ArchiveRuleSummary &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue