AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrailProperties.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
34 {
35 public:
36 AWS_ACCESSANALYZER_API TrailProperties();
37 AWS_ACCESSANALYZER_API TrailProperties(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API TrailProperties& 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 TrailProperties& WithCloudTrailArn(const Aws::String& value) { SetCloudTrailArn(value); return *this;}
53 inline TrailProperties& WithCloudTrailArn(Aws::String&& value) { SetCloudTrailArn(std::move(value)); return *this;}
54 inline TrailProperties& 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 TrailProperties& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
67 inline TrailProperties& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
68 inline TrailProperties& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
69 inline TrailProperties& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
70 inline TrailProperties& 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 TrailProperties& 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
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API TrailProperties()
TrailProperties & WithCloudTrailArn(const char *value)
TrailProperties & AddRegions(Aws::String &&value)
AWS_ACCESSANALYZER_API TrailProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API TrailProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudTrailArn() const
TrailProperties & WithRegions(const Aws::Vector< Aws::String > &value)
TrailProperties & WithCloudTrailArn(const Aws::String &value)
void SetCloudTrailArn(const Aws::String &value)
TrailProperties & AddRegions(const Aws::String &value)
void SetRegions(Aws::Vector< Aws::String > &&value)
TrailProperties & WithRegions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRegions() const
void SetRegions(const Aws::Vector< Aws::String > &value)
TrailProperties & AddRegions(const char *value)
TrailProperties & WithAllRegions(bool value)
TrailProperties & WithCloudTrailArn(Aws::String &&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