AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 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 TrailProperties& 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 TrailProperties& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
66 template<typename RegionsT = Aws::String>
67 TrailProperties& 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 TrailProperties& 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
TrailProperties & WithRegions(RegionsT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API TrailProperties()=default
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 & WithCloudTrailArn(CloudTrailArnT &&value)
TrailProperties & AddRegions(RegionsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
void SetCloudTrailArn(CloudTrailArnT &&value)
TrailProperties & WithAllRegions(bool 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