AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficDistributionGroupSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/TrafficDistributionGroupStatus.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 Connect
23{
24namespace Model
25{
26
33 {
34 public:
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline TrafficDistributionGroupSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline TrafficDistributionGroupSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline TrafficDistributionGroupSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline TrafficDistributionGroupSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline TrafficDistributionGroupSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline TrafficDistributionGroupSummary& WithArn(const char* value) { SetArn(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline TrafficDistributionGroupSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline TrafficDistributionGroupSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline TrafficDistributionGroupSummary& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
91 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
92 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
93 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
94 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
95 inline TrafficDistributionGroupSummary& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
96 inline TrafficDistributionGroupSummary& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
97 inline TrafficDistributionGroupSummary& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
99
101
122 inline const TrafficDistributionGroupStatus& GetStatus() const{ return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 inline void SetStatus(const TrafficDistributionGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; }
125 inline void SetStatus(TrafficDistributionGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
127 inline TrafficDistributionGroupSummary& WithStatus(TrafficDistributionGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
129
131
137 inline bool GetIsDefault() const{ return m_isDefault; }
138 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
139 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
140 inline TrafficDistributionGroupSummary& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
142 private:
143
144 Aws::String m_id;
145 bool m_idHasBeenSet = false;
146
147 Aws::String m_arn;
148 bool m_arnHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 Aws::String m_instanceArn;
154 bool m_instanceArnHasBeenSet = false;
155
157 bool m_statusHasBeenSet = false;
158
159 bool m_isDefault;
160 bool m_isDefaultHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Connect
165} // namespace Aws
void SetStatus(const TrafficDistributionGroupStatus &value)
TrafficDistributionGroupSummary & WithArn(Aws::String &&value)
TrafficDistributionGroupSummary & WithInstanceArn(const Aws::String &value)
TrafficDistributionGroupSummary & WithId(const char *value)
TrafficDistributionGroupSummary & WithName(Aws::String &&value)
TrafficDistributionGroupSummary & WithInstanceArn(Aws::String &&value)
TrafficDistributionGroupSummary & WithInstanceArn(const char *value)
AWS_CONNECT_API TrafficDistributionGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const TrafficDistributionGroupStatus & GetStatus() const
TrafficDistributionGroupSummary & WithName(const Aws::String &value)
AWS_CONNECT_API TrafficDistributionGroupSummary(Aws::Utils::Json::JsonView jsonValue)
TrafficDistributionGroupSummary & WithArn(const Aws::String &value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TrafficDistributionGroupSummary & WithId(Aws::String &&value)
TrafficDistributionGroupSummary & WithIsDefault(bool value)
TrafficDistributionGroupSummary & WithName(const char *value)
TrafficDistributionGroupSummary & WithStatus(TrafficDistributionGroupStatus &&value)
TrafficDistributionGroupSummary & WithArn(const char *value)
TrafficDistributionGroupSummary & WithStatus(const TrafficDistributionGroupStatus &value)
TrafficDistributionGroupSummary & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue