AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Trail.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
33 class Trail
34 {
35 public:
36 AWS_ACCESSANALYZER_API Trail() = default;
37 AWS_ACCESSANALYZER_API Trail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API Trail& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetCloudTrailArn() const { return m_cloudTrailArn; }
48 inline bool CloudTrailArnHasBeenSet() const { return m_cloudTrailArnHasBeenSet; }
49 template<typename CloudTrailArnT = Aws::String>
50 void SetCloudTrailArn(CloudTrailArnT&& value) { m_cloudTrailArnHasBeenSet = true; m_cloudTrailArn = std::forward<CloudTrailArnT>(value); }
51 template<typename CloudTrailArnT = Aws::String>
52 Trail& WithCloudTrailArn(CloudTrailArnT&& value) { SetCloudTrailArn(std::forward<CloudTrailArnT>(value)); return *this;}
54
56
60 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
61 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
62 template<typename RegionsT = Aws::Vector<Aws::String>>
63 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
64 template<typename RegionsT = Aws::Vector<Aws::String>>
65 Trail& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
66 template<typename RegionsT = Aws::String>
67 Trail& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
69
71
76 inline bool GetAllRegions() const { return m_allRegions; }
77 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
78 inline void SetAllRegions(bool value) { m_allRegionsHasBeenSet = true; m_allRegions = value; }
79 inline Trail& WithAllRegions(bool value) { SetAllRegions(value); return *this;}
81 private:
82
83 Aws::String m_cloudTrailArn;
84 bool m_cloudTrailArnHasBeenSet = false;
85
87 bool m_regionsHasBeenSet = false;
88
89 bool m_allRegions{false};
90 bool m_allRegionsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace AccessAnalyzer
95} // namespace Aws
void SetAllRegions(bool value)
Definition Trail.h:78
Trail & WithAllRegions(bool value)
Definition Trail.h:79
Trail & WithRegions(RegionsT &&value)
Definition Trail.h:65
AWS_ACCESSANALYZER_API Trail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetRegions() const
Definition Trail.h:60
Trail & AddRegions(RegionsT &&value)
Definition Trail.h:67
AWS_ACCESSANALYZER_API Trail(Aws::Utils::Json::JsonView jsonValue)
void SetCloudTrailArn(CloudTrailArnT &&value)
Definition Trail.h:50
const Aws::String & GetCloudTrailArn() const
Definition Trail.h:47
bool CloudTrailArnHasBeenSet() const
Definition Trail.h:48
Trail & WithCloudTrailArn(CloudTrailArnT &&value)
Definition Trail.h:52
void SetRegions(RegionsT &&value)
Definition Trail.h:63
bool AllRegionsHasBeenSet() const
Definition Trail.h:77
AWS_ACCESSANALYZER_API Trail()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue