AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrailInfo.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDTRAIL_API TrailInfo();
36 AWS_CLOUDTRAIL_API TrailInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDTRAIL_API TrailInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetTrailARN() const{ return m_trailARN; }
46 inline bool TrailARNHasBeenSet() const { return m_trailARNHasBeenSet; }
47 inline void SetTrailARN(const Aws::String& value) { m_trailARNHasBeenSet = true; m_trailARN = value; }
48 inline void SetTrailARN(Aws::String&& value) { m_trailARNHasBeenSet = true; m_trailARN = std::move(value); }
49 inline void SetTrailARN(const char* value) { m_trailARNHasBeenSet = true; m_trailARN.assign(value); }
50 inline TrailInfo& WithTrailARN(const Aws::String& value) { SetTrailARN(value); return *this;}
51 inline TrailInfo& WithTrailARN(Aws::String&& value) { SetTrailARN(std::move(value)); return *this;}
52 inline TrailInfo& WithTrailARN(const char* value) { SetTrailARN(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline TrailInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline TrailInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline TrailInfo& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
74 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
75 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
76 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
77 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
78 inline TrailInfo& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
79 inline TrailInfo& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
80 inline TrailInfo& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
82 private:
83
84 Aws::String m_trailARN;
85 bool m_trailARNHasBeenSet = false;
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
90 Aws::String m_homeRegion;
91 bool m_homeRegionHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CloudTrail
96} // namespace Aws
const Aws::String & GetTrailARN() const
Definition TrailInfo.h:45
TrailInfo & WithHomeRegion(const char *value)
Definition TrailInfo.h:80
TrailInfo & WithTrailARN(const char *value)
Definition TrailInfo.h:52
void SetHomeRegion(const Aws::String &value)
Definition TrailInfo.h:75
const Aws::String & GetHomeRegion() const
Definition TrailInfo.h:73
void SetTrailARN(const char *value)
Definition TrailInfo.h:49
TrailInfo & WithTrailARN(const Aws::String &value)
Definition TrailInfo.h:50
const Aws::String & GetName() const
Definition TrailInfo.h:59
TrailInfo & WithName(const Aws::String &value)
Definition TrailInfo.h:64
AWS_CLOUDTRAIL_API TrailInfo(Aws::Utils::Json::JsonView jsonValue)
TrailInfo & WithHomeRegion(const Aws::String &value)
Definition TrailInfo.h:78
void SetTrailARN(const Aws::String &value)
Definition TrailInfo.h:47
TrailInfo & WithName(Aws::String &&value)
Definition TrailInfo.h:65
void SetName(const Aws::String &value)
Definition TrailInfo.h:61
void SetHomeRegion(const char *value)
Definition TrailInfo.h:77
void SetHomeRegion(Aws::String &&value)
Definition TrailInfo.h:76
void SetName(const char *value)
Definition TrailInfo.h:63
AWS_CLOUDTRAIL_API TrailInfo()
AWS_CLOUDTRAIL_API TrailInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
TrailInfo & WithName(const char *value)
Definition TrailInfo.h:66
void SetName(Aws::String &&value)
Definition TrailInfo.h:62
TrailInfo & WithHomeRegion(Aws::String &&value)
Definition TrailInfo.h:79
void SetTrailARN(Aws::String &&value)
Definition TrailInfo.h:48
TrailInfo & WithTrailARN(Aws::String &&value)
Definition TrailInfo.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue