AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudTrailProperties.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/DateTime.h>
10#include <aws/accessanalyzer/model/TrailProperties.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ACCESSANALYZER_API CloudTrailProperties();
37 AWS_ACCESSANALYZER_API CloudTrailProperties(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API CloudTrailProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<TrailProperties>& GetTrailProperties() const{ return m_trailProperties; }
48 inline bool TrailPropertiesHasBeenSet() const { return m_trailPropertiesHasBeenSet; }
49 inline void SetTrailProperties(const Aws::Vector<TrailProperties>& value) { m_trailPropertiesHasBeenSet = true; m_trailProperties = value; }
50 inline void SetTrailProperties(Aws::Vector<TrailProperties>&& value) { m_trailPropertiesHasBeenSet = true; m_trailProperties = std::move(value); }
53 inline CloudTrailProperties& AddTrailProperties(const TrailProperties& value) { m_trailPropertiesHasBeenSet = true; m_trailProperties.push_back(value); return *this; }
54 inline CloudTrailProperties& AddTrailProperties(TrailProperties&& value) { m_trailPropertiesHasBeenSet = true; m_trailProperties.push_back(std::move(value)); return *this; }
56
58
63 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
64 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
65 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
66 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
67 inline CloudTrailProperties& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
68 inline CloudTrailProperties& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
70
72
78 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
79 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
80 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
81 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
82 inline CloudTrailProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
83 inline CloudTrailProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
85 private:
86
87 Aws::Vector<TrailProperties> m_trailProperties;
88 bool m_trailPropertiesHasBeenSet = false;
89
90 Aws::Utils::DateTime m_startTime;
91 bool m_startTimeHasBeenSet = false;
92
93 Aws::Utils::DateTime m_endTime;
94 bool m_endTimeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AccessAnalyzer
99} // namespace Aws
CloudTrailProperties & AddTrailProperties(TrailProperties &&value)
AWS_ACCESSANALYZER_API CloudTrailProperties(Aws::Utils::Json::JsonView jsonValue)
CloudTrailProperties & AddTrailProperties(const TrailProperties &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetTrailProperties(const Aws::Vector< TrailProperties > &value)
void SetTrailProperties(Aws::Vector< TrailProperties > &&value)
CloudTrailProperties & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_ACCESSANALYZER_API CloudTrailProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TrailProperties > & GetTrailProperties() const
void SetEndTime(const Aws::Utils::DateTime &value)
CloudTrailProperties & WithTrailProperties(const Aws::Vector< TrailProperties > &value)
const Aws::Utils::DateTime & GetStartTime() const
CloudTrailProperties & WithTrailProperties(Aws::Vector< TrailProperties > &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
CloudTrailProperties & WithStartTime(Aws::Utils::DateTime &&value)
CloudTrailProperties & WithEndTime(const Aws::Utils::DateTime &value)
CloudTrailProperties & WithStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue