AWS SDK for C++  1.9.153
AWS SDK for C++
TrailProperties.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AccessAnalyzer
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline bool GetAllRegions() const{ return m_allRegions; }
48 
54  inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
55 
61  inline void SetAllRegions(bool value) { m_allRegionsHasBeenSet = true; m_allRegions = value; }
62 
68  inline TrailProperties& WithAllRegions(bool value) { SetAllRegions(value); return *this;}
69 
70 
75  inline const Aws::String& GetCloudTrailArn() const{ return m_cloudTrailArn; }
76 
81  inline bool CloudTrailArnHasBeenSet() const { return m_cloudTrailArnHasBeenSet; }
82 
87  inline void SetCloudTrailArn(const Aws::String& value) { m_cloudTrailArnHasBeenSet = true; m_cloudTrailArn = value; }
88 
93  inline void SetCloudTrailArn(Aws::String&& value) { m_cloudTrailArnHasBeenSet = true; m_cloudTrailArn = std::move(value); }
94 
99  inline void SetCloudTrailArn(const char* value) { m_cloudTrailArnHasBeenSet = true; m_cloudTrailArn.assign(value); }
100 
105  inline TrailProperties& WithCloudTrailArn(const Aws::String& value) { SetCloudTrailArn(value); return *this;}
106 
111  inline TrailProperties& WithCloudTrailArn(Aws::String&& value) { SetCloudTrailArn(std::move(value)); return *this;}
112 
117  inline TrailProperties& WithCloudTrailArn(const char* value) { SetCloudTrailArn(value); return *this;}
118 
119 
124  inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
125 
130  inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
131 
136  inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
137 
142  inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
143 
148  inline TrailProperties& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
149 
154  inline TrailProperties& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
155 
160  inline TrailProperties& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
161 
166  inline TrailProperties& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
167 
172  inline TrailProperties& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
173 
174  private:
175 
176  bool m_allRegions;
177  bool m_allRegionsHasBeenSet;
178 
179  Aws::String m_cloudTrailArn;
180  bool m_cloudTrailArnHasBeenSet;
181 
182  Aws::Vector<Aws::String> m_regions;
183  bool m_regionsHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace AccessAnalyzer
188 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::TrailProperties::WithCloudTrailArn
TrailProperties & WithCloudTrailArn(Aws::String &&value)
Definition: TrailProperties.h:111
Aws::AccessAnalyzer::Model::TrailProperties::SetCloudTrailArn
void SetCloudTrailArn(const Aws::String &value)
Definition: TrailProperties.h:87
Aws::AccessAnalyzer::Model::TrailProperties::GetCloudTrailArn
const Aws::String & GetCloudTrailArn() const
Definition: TrailProperties.h:75
Aws::AccessAnalyzer::Model::TrailProperties::RegionsHasBeenSet
bool RegionsHasBeenSet() const
Definition: TrailProperties.h:130
Aws::AccessAnalyzer::Model::TrailProperties::TrailProperties
TrailProperties(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::TrailProperties::SetRegions
void SetRegions(Aws::Vector< Aws::String > &&value)
Definition: TrailProperties.h:142
Aws::AccessAnalyzer::Model::TrailProperties::CloudTrailArnHasBeenSet
bool CloudTrailArnHasBeenSet() const
Definition: TrailProperties.h:81
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::AccessAnalyzer::Model::TrailProperties::AddRegions
TrailProperties & AddRegions(Aws::String &&value)
Definition: TrailProperties.h:166
Aws::AccessAnalyzer::Model::TrailProperties::WithRegions
TrailProperties & WithRegions(const Aws::Vector< Aws::String > &value)
Definition: TrailProperties.h:148
Aws::AccessAnalyzer::Model::TrailProperties::TrailProperties
TrailProperties()
Aws::AccessAnalyzer::Model::TrailProperties::AllRegionsHasBeenSet
bool AllRegionsHasBeenSet() const
Definition: TrailProperties.h:54
Aws::AccessAnalyzer::Model::TrailProperties::WithAllRegions
TrailProperties & WithAllRegions(bool value)
Definition: TrailProperties.h:68
Aws::AccessAnalyzer::Model::TrailProperties::operator=
TrailProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::TrailProperties::WithCloudTrailArn
TrailProperties & WithCloudTrailArn(const char *value)
Definition: TrailProperties.h:117
Aws::AccessAnalyzer::Model::TrailProperties::WithCloudTrailArn
TrailProperties & WithCloudTrailArn(const Aws::String &value)
Definition: TrailProperties.h:105
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AccessAnalyzer::Model::TrailProperties::AddRegions
TrailProperties & AddRegions(const Aws::String &value)
Definition: TrailProperties.h:160
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::TrailProperties::GetRegions
const Aws::Vector< Aws::String > & GetRegions() const
Definition: TrailProperties.h:124
Aws::AccessAnalyzer::Model::TrailProperties::SetAllRegions
void SetAllRegions(bool value)
Definition: TrailProperties.h:61
Aws::AccessAnalyzer::Model::TrailProperties::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::TrailProperties
Definition: TrailProperties.h:34
Aws::AccessAnalyzer::Model::TrailProperties::SetRegions
void SetRegions(const Aws::Vector< Aws::String > &value)
Definition: TrailProperties.h:136
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AccessAnalyzer::Model::TrailProperties::SetCloudTrailArn
void SetCloudTrailArn(const char *value)
Definition: TrailProperties.h:99
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::TrailProperties::GetAllRegions
bool GetAllRegions() const
Definition: TrailProperties.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::TrailProperties::SetCloudTrailArn
void SetCloudTrailArn(Aws::String &&value)
Definition: TrailProperties.h:93
Aws::AccessAnalyzer::Model::TrailProperties::WithRegions
TrailProperties & WithRegions(Aws::Vector< Aws::String > &&value)
Definition: TrailProperties.h:154
Aws::AccessAnalyzer::Model::TrailProperties::AddRegions
TrailProperties & AddRegions(const char *value)
Definition: TrailProperties.h:172