AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficDistributionGroup.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 <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECT_API TrafficDistributionGroup();
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline TrafficDistributionGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline TrafficDistributionGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline TrafficDistributionGroup& WithId(const char* value) { SetId(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 TrafficDistributionGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline TrafficDistributionGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline TrafficDistributionGroup& WithArn(const char* value) { SetArn(value); return *this;}
72
74
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline TrafficDistributionGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline TrafficDistributionGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline TrafficDistributionGroup& WithName(const char* value) { SetName(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline TrafficDistributionGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline TrafficDistributionGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline TrafficDistributionGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
105 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
106 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
107 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
108 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
109 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
110 inline TrafficDistributionGroup& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
111 inline TrafficDistributionGroup& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
112 inline TrafficDistributionGroup& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
114
116
137 inline const TrafficDistributionGroupStatus& GetStatus() const{ return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(const TrafficDistributionGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; }
140 inline void SetStatus(TrafficDistributionGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
142 inline TrafficDistributionGroup& WithStatus(TrafficDistributionGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
144
146
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline TrafficDistributionGroup& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
156 inline TrafficDistributionGroup& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
157 inline TrafficDistributionGroup& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
158 inline TrafficDistributionGroup& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
159 inline TrafficDistributionGroup& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
160 inline TrafficDistributionGroup& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
161 inline TrafficDistributionGroup& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
162 inline TrafficDistributionGroup& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
164
166
180 inline bool GetIsDefault() const{ return m_isDefault; }
181 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
182 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
183 inline TrafficDistributionGroup& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
185 private:
186
187 Aws::String m_id;
188 bool m_idHasBeenSet = false;
189
190 Aws::String m_arn;
191 bool m_arnHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
196 Aws::String m_description;
197 bool m_descriptionHasBeenSet = false;
198
199 Aws::String m_instanceArn;
200 bool m_instanceArnHasBeenSet = false;
201
203 bool m_statusHasBeenSet = false;
204
206 bool m_tagsHasBeenSet = false;
207
208 bool m_isDefault;
209 bool m_isDefaultHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace Connect
214} // namespace Aws
TrafficDistributionGroup & WithId(const char *value)
TrafficDistributionGroup & WithId(Aws::String &&value)
TrafficDistributionGroup & WithInstanceArn(const Aws::String &value)
TrafficDistributionGroup & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TrafficDistributionGroup & WithArn(const Aws::String &value)
const TrafficDistributionGroupStatus & GetStatus() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
TrafficDistributionGroup & WithArn(const char *value)
void SetStatus(const TrafficDistributionGroupStatus &value)
TrafficDistributionGroup & AddTags(Aws::String &&key, Aws::String &&value)
TrafficDistributionGroup & AddTags(Aws::String &&key, const Aws::String &value)
TrafficDistributionGroup & WithName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
TrafficDistributionGroup & WithId(const Aws::String &value)
void SetStatus(TrafficDistributionGroupStatus &&value)
TrafficDistributionGroup & AddTags(const char *key, Aws::String &&value)
TrafficDistributionGroup & WithStatus(TrafficDistributionGroupStatus &&value)
TrafficDistributionGroup & WithStatus(const TrafficDistributionGroupStatus &value)
TrafficDistributionGroup & AddTags(Aws::String &&key, const char *value)
TrafficDistributionGroup & WithName(const char *value)
TrafficDistributionGroup & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
TrafficDistributionGroup & AddTags(const Aws::String &key, const Aws::String &value)
TrafficDistributionGroup & WithInstanceArn(const char *value)
AWS_CONNECT_API TrafficDistributionGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
TrafficDistributionGroup & WithIsDefault(bool value)
TrafficDistributionGroup & WithArn(Aws::String &&value)
TrafficDistributionGroup & WithInstanceArn(Aws::String &&value)
TrafficDistributionGroup & WithDescription(Aws::String &&value)
TrafficDistributionGroup & WithDescription(const Aws::String &value)
AWS_CONNECT_API TrafficDistributionGroup(Aws::Utils::Json::JsonView jsonValue)
TrafficDistributionGroup & AddTags(const Aws::String &key, Aws::String &&value)
TrafficDistributionGroup & WithName(Aws::String &&value)
TrafficDistributionGroup & WithDescription(const char *value)
TrafficDistributionGroup & AddTags(const char *key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue