AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventBus.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_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 CloudWatchEvents
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_CLOUDWATCHEVENTS_API EventBus();
40 AWS_CLOUDWATCHEVENTS_API EventBus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHEVENTS_API EventBus& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline EventBus& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline EventBus& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline EventBus& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline EventBus& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline EventBus& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline EventBus& WithArn(const char* value) { SetArn(value); return *this;}
72
74
78 inline const Aws::String& GetPolicy() const{ return m_policy; }
79 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
80 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
81 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
82 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
83 inline EventBus& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
84 inline EventBus& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
85 inline EventBus& WithPolicy(const char* value) { SetPolicy(value); return *this;}
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::String m_arn;
93 bool m_arnHasBeenSet = false;
94
95 Aws::String m_policy;
96 bool m_policyHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CloudWatchEvents
101} // namespace Aws
void SetArn(const char *value)
Definition EventBus.h:67
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EventBus & WithPolicy(const Aws::String &value)
Definition EventBus.h:83
EventBus & WithPolicy(Aws::String &&value)
Definition EventBus.h:84
void SetPolicy(Aws::String &&value)
Definition EventBus.h:81
EventBus & WithName(const char *value)
Definition EventBus.h:56
EventBus & WithArn(const char *value)
Definition EventBus.h:70
AWS_CLOUDWATCHEVENTS_API EventBus & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition EventBus.h:63
EventBus & WithName(const Aws::String &value)
Definition EventBus.h:54
EventBus & WithName(Aws::String &&value)
Definition EventBus.h:55
EventBus & WithPolicy(const char *value)
Definition EventBus.h:85
void SetName(const char *value)
Definition EventBus.h:53
void SetName(const Aws::String &value)
Definition EventBus.h:51
void SetArn(const Aws::String &value)
Definition EventBus.h:65
AWS_CLOUDWATCHEVENTS_API EventBus(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition EventBus.h:52
void SetPolicy(const char *value)
Definition EventBus.h:82
const Aws::String & GetPolicy() const
Definition EventBus.h:78
AWS_CLOUDWATCHEVENTS_API EventBus()
EventBus & WithArn(Aws::String &&value)
Definition EventBus.h:69
EventBus & WithArn(const Aws::String &value)
Definition EventBus.h:68
void SetArn(Aws::String &&value)
Definition EventBus.h:66
const Aws::String & GetName() const
Definition EventBus.h:49
void SetPolicy(const Aws::String &value)
Definition EventBus.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue