AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCloudTrailArn(const Aws::String& value) { m_cloudTrailArnHasBeenSet = true; m_cloudTrailArn = value; }
50 inline void SetCloudTrailArn(Aws::String&& value) { m_cloudTrailArnHasBeenSet = true; m_cloudTrailArn = std::move(value); }
51 inline void SetCloudTrailArn(const char* value) { m_cloudTrailArnHasBeenSet = true; m_cloudTrailArn.assign(value); }
52 inline Trail& WithCloudTrailArn(const Aws::String& value) { SetCloudTrailArn(value); return *this;}
53 inline Trail& WithCloudTrailArn(Aws::String&& value) { SetCloudTrailArn(std::move(value)); return *this;}
54 inline Trail& WithCloudTrailArn(const char* value) { SetCloudTrailArn(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
63 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
64 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
65 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
66 inline Trail& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
67 inline Trail& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
68 inline Trail& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
69 inline Trail& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
70 inline Trail& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
72
74
79 inline bool GetAllRegions() const{ return m_allRegions; }
80 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
81 inline void SetAllRegions(bool value) { m_allRegionsHasBeenSet = true; m_allRegions = value; }
82 inline Trail& WithAllRegions(bool value) { SetAllRegions(value); return *this;}
84 private:
85
86 Aws::String m_cloudTrailArn;
87 bool m_cloudTrailArnHasBeenSet = false;
88
90 bool m_regionsHasBeenSet = false;
91
92 bool m_allRegions;
93 bool m_allRegionsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace AccessAnalyzer
98} // namespace Aws
Trail & AddRegions(Aws::String &&value)
Definition Trail.h:69
Trail & AddRegions(const char *value)
Definition Trail.h:70
void SetAllRegions(bool value)
Definition Trail.h:81
AWS_ACCESSANALYZER_API Trail()
Trail & WithAllRegions(bool value)
Definition Trail.h:82
Trail & WithRegions(Aws::Vector< Aws::String > &&value)
Definition Trail.h:67
Trail & WithCloudTrailArn(const char *value)
Definition Trail.h:54
void SetCloudTrailArn(const char *value)
Definition Trail.h:51
Trail & WithRegions(const Aws::Vector< Aws::String > &value)
Definition Trail.h:66
AWS_ACCESSANALYZER_API Trail & operator=(Aws::Utils::Json::JsonView jsonValue)
Trail & WithCloudTrailArn(const Aws::String &value)
Definition Trail.h:52
void SetRegions(const Aws::Vector< Aws::String > &value)
Definition Trail.h:64
void SetRegions(Aws::Vector< Aws::String > &&value)
Definition Trail.h:65
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCloudTrailArn(Aws::String &&value)
Definition Trail.h:50
const Aws::Vector< Aws::String > & GetRegions() const
Definition Trail.h:62
AWS_ACCESSANALYZER_API Trail(Aws::Utils::Json::JsonView jsonValue)
Trail & AddRegions(const Aws::String &value)
Definition Trail.h:68
const Aws::String & GetCloudTrailArn() const
Definition Trail.h:47
bool CloudTrailArnHasBeenSet() const
Definition Trail.h:48
void SetCloudTrailArn(const Aws::String &value)
Definition Trail.h:49
bool AllRegionsHasBeenSet() const
Definition Trail.h:80
Trail & WithCloudTrailArn(Aws::String &&value)
Definition Trail.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue