AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudTrailDetails.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/accessanalyzer/model/Trail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ACCESSANALYZER_API CloudTrailDetails();
38 AWS_ACCESSANALYZER_API CloudTrailDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API CloudTrailDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Trail>& GetTrails() const{ return m_trails; }
48 inline bool TrailsHasBeenSet() const { return m_trailsHasBeenSet; }
49 inline void SetTrails(const Aws::Vector<Trail>& value) { m_trailsHasBeenSet = true; m_trails = value; }
50 inline void SetTrails(Aws::Vector<Trail>&& value) { m_trailsHasBeenSet = true; m_trails = std::move(value); }
51 inline CloudTrailDetails& WithTrails(const Aws::Vector<Trail>& value) { SetTrails(value); return *this;}
52 inline CloudTrailDetails& WithTrails(Aws::Vector<Trail>&& value) { SetTrails(std::move(value)); return *this;}
53 inline CloudTrailDetails& AddTrails(const Trail& value) { m_trailsHasBeenSet = true; m_trails.push_back(value); return *this; }
54 inline CloudTrailDetails& AddTrails(Trail&& value) { m_trailsHasBeenSet = true; m_trails.push_back(std::move(value)); return *this; }
56
58
62 inline const Aws::String& GetAccessRole() const{ return m_accessRole; }
63 inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
64 inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; }
65 inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); }
66 inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); }
67 inline CloudTrailDetails& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;}
68 inline CloudTrailDetails& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;}
69 inline CloudTrailDetails& WithAccessRole(const char* value) { SetAccessRole(value); return *this;}
71
73
78 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
79 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
80 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
81 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
82 inline CloudTrailDetails& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
83 inline CloudTrailDetails& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
85
87
93 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
94 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
95 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
96 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
97 inline CloudTrailDetails& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
98 inline CloudTrailDetails& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
100 private:
101
102 Aws::Vector<Trail> m_trails;
103 bool m_trailsHasBeenSet = false;
104
105 Aws::String m_accessRole;
106 bool m_accessRoleHasBeenSet = false;
107
108 Aws::Utils::DateTime m_startTime;
109 bool m_startTimeHasBeenSet = false;
110
111 Aws::Utils::DateTime m_endTime;
112 bool m_endTimeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AccessAnalyzer
117} // namespace Aws
CloudTrailDetails & WithTrails(const Aws::Vector< Trail > &value)
CloudTrailDetails & WithAccessRole(const Aws::String &value)
const Aws::Vector< Trail > & GetTrails() const
void SetStartTime(Aws::Utils::DateTime &&value)
CloudTrailDetails & WithAccessRole(const char *value)
CloudTrailDetails & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetTrails(const Aws::Vector< Trail > &value)
CloudTrailDetails & AddTrails(const Trail &value)
CloudTrailDetails & WithEndTime(Aws::Utils::DateTime &&value)
void SetTrails(Aws::Vector< Trail > &&value)
AWS_ACCESSANALYZER_API CloudTrailDetails(Aws::Utils::Json::JsonView jsonValue)
void SetAccessRole(const Aws::String &value)
void SetEndTime(const Aws::Utils::DateTime &value)
CloudTrailDetails & WithEndTime(const Aws::Utils::DateTime &value)
AWS_ACCESSANALYZER_API CloudTrailDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudTrailDetails & WithTrails(Aws::Vector< Trail > &&value)
CloudTrailDetails & WithAccessRole(Aws::String &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
CloudTrailDetails & AddTrails(Trail &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
CloudTrailDetails & WithStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue