AWS SDK for C++  1.9.155
AWS SDK for C++
CloudTrailDetails.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AccessAnalyzer
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetAccessRole() const{ return m_accessRole; }
48 
53  inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; }
54 
59  inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; }
60 
65  inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); }
66 
71  inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); }
72 
77  inline CloudTrailDetails& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;}
78 
83  inline CloudTrailDetails& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;}
84 
89  inline CloudTrailDetails& WithAccessRole(const char* value) { SetAccessRole(value); return *this;}
90 
91 
98  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
99 
106  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
107 
114  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
115 
122  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
123 
130  inline CloudTrailDetails& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
131 
138  inline CloudTrailDetails& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
139 
140 
146  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
147 
153  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
154 
160  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
161 
167  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
168 
174  inline CloudTrailDetails& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
175 
181  inline CloudTrailDetails& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
182 
183 
187  inline const Aws::Vector<Trail>& GetTrails() const{ return m_trails; }
188 
192  inline bool TrailsHasBeenSet() const { return m_trailsHasBeenSet; }
193 
197  inline void SetTrails(const Aws::Vector<Trail>& value) { m_trailsHasBeenSet = true; m_trails = value; }
198 
202  inline void SetTrails(Aws::Vector<Trail>&& value) { m_trailsHasBeenSet = true; m_trails = std::move(value); }
203 
207  inline CloudTrailDetails& WithTrails(const Aws::Vector<Trail>& value) { SetTrails(value); return *this;}
208 
212  inline CloudTrailDetails& WithTrails(Aws::Vector<Trail>&& value) { SetTrails(std::move(value)); return *this;}
213 
217  inline CloudTrailDetails& AddTrails(const Trail& value) { m_trailsHasBeenSet = true; m_trails.push_back(value); return *this; }
218 
222  inline CloudTrailDetails& AddTrails(Trail&& value) { m_trailsHasBeenSet = true; m_trails.push_back(std::move(value)); return *this; }
223 
224  private:
225 
226  Aws::String m_accessRole;
227  bool m_accessRoleHasBeenSet;
228 
229  Aws::Utils::DateTime m_endTime;
230  bool m_endTimeHasBeenSet;
231 
232  Aws::Utils::DateTime m_startTime;
233  bool m_startTimeHasBeenSet;
234 
235  Aws::Vector<Trail> m_trails;
236  bool m_trailsHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace AccessAnalyzer
241 } // namespace Aws
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: CloudTrailDetails.h:114
Aws::Utils::DateTime
Definition: DateTime.h:55
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetAccessRole
void SetAccessRole(const char *value)
Definition: CloudTrailDetails.h:71
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetTrails
void SetTrails(const Aws::Vector< Trail > &value)
Definition: CloudTrailDetails.h:197
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: CloudTrailDetails.h:122
Aws::AccessAnalyzer::Model::CloudTrailDetails::AddTrails
CloudTrailDetails & AddTrails(Trail &&value)
Definition: CloudTrailDetails.h:222
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetAccessRole
void SetAccessRole(const Aws::String &value)
Definition: CloudTrailDetails.h:59
Aws::AccessAnalyzer::Model::CloudTrailDetails::GetTrails
const Aws::Vector< Trail > & GetTrails() const
Definition: CloudTrailDetails.h:187
Aws::AccessAnalyzer::Model::CloudTrailDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
DateTime.h
Aws::AccessAnalyzer::Model::CloudTrailDetails::TrailsHasBeenSet
bool TrailsHasBeenSet() const
Definition: CloudTrailDetails.h:192
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithTrails
CloudTrailDetails & WithTrails(Aws::Vector< Trail > &&value)
Definition: CloudTrailDetails.h:212
Aws::AccessAnalyzer::Model::CloudTrailDetails::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: CloudTrailDetails.h:98
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithAccessRole
CloudTrailDetails & WithAccessRole(Aws::String &&value)
Definition: CloudTrailDetails.h:83
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::CloudTrailDetails::GetAccessRole
const Aws::String & GetAccessRole() const
Definition: CloudTrailDetails.h:47
Aws::AccessAnalyzer::Model::CloudTrailDetails::AddTrails
CloudTrailDetails & AddTrails(const Trail &value)
Definition: CloudTrailDetails.h:217
AWSVector.h
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: CloudTrailDetails.h:160
Aws::AccessAnalyzer::Model::Trail
Definition: Trail.h:34
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: CloudTrailDetails.h:167
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithTrails
CloudTrailDetails & WithTrails(const Aws::Vector< Trail > &value)
Definition: CloudTrailDetails.h:207
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithStartTime
CloudTrailDetails & WithStartTime(Aws::Utils::DateTime &&value)
Definition: CloudTrailDetails.h:181
Aws::AccessAnalyzer::Model::CloudTrailDetails::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: CloudTrailDetails.h:153
Aws::AccessAnalyzer::Model::CloudTrailDetails::operator=
CloudTrailDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::CloudTrailDetails::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: CloudTrailDetails.h:146
Trail.h
Aws::AccessAnalyzer::Model::CloudTrailDetails::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: CloudTrailDetails.h:106
Aws::AccessAnalyzer::Model::CloudTrailDetails::CloudTrailDetails
CloudTrailDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::CloudTrailDetails::CloudTrailDetails
CloudTrailDetails()
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithAccessRole
CloudTrailDetails & WithAccessRole(const char *value)
Definition: CloudTrailDetails.h:89
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetTrails
void SetTrails(Aws::Vector< Trail > &&value)
Definition: CloudTrailDetails.h:202
Aws::AccessAnalyzer::Model::CloudTrailDetails::AccessRoleHasBeenSet
bool AccessRoleHasBeenSet() const
Definition: CloudTrailDetails.h:53
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::CloudTrailDetails
Definition: CloudTrailDetails.h:35
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithEndTime
CloudTrailDetails & WithEndTime(Aws::Utils::DateTime &&value)
Definition: CloudTrailDetails.h:138
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithStartTime
CloudTrailDetails & WithStartTime(const Aws::Utils::DateTime &value)
Definition: CloudTrailDetails.h:174
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithAccessRole
CloudTrailDetails & WithAccessRole(const Aws::String &value)
Definition: CloudTrailDetails.h:77
Aws::AccessAnalyzer::Model::CloudTrailDetails::WithEndTime
CloudTrailDetails & WithEndTime(const Aws::Utils::DateTime &value)
Definition: CloudTrailDetails.h:130
Aws::AccessAnalyzer::Model::CloudTrailDetails::SetAccessRole
void SetAccessRole(Aws::String &&value)
Definition: CloudTrailDetails.h:65