AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateViewRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/ViewStatus.h>
11#include <aws/connect/model/ViewInputContent.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API CreateViewRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateView"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline CreateViewRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline CreateViewRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline CreateViewRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
58 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
61 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
62 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
63 inline CreateViewRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
64 inline CreateViewRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
65 inline CreateViewRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
67
69
74 inline const ViewStatus& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const ViewStatus& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(ViewStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline CreateViewRequest& WithStatus(const ViewStatus& value) { SetStatus(value); return *this;}
79 inline CreateViewRequest& WithStatus(ViewStatus&& value) { SetStatus(std::move(value)); return *this;}
81
83
88 inline const ViewInputContent& GetContent() const{ return m_content; }
89 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
90 inline void SetContent(const ViewInputContent& value) { m_contentHasBeenSet = true; m_content = value; }
91 inline void SetContent(ViewInputContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
92 inline CreateViewRequest& WithContent(const ViewInputContent& value) { SetContent(value); return *this;}
93 inline CreateViewRequest& WithContent(ViewInputContent&& value) { SetContent(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline CreateViewRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline CreateViewRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline CreateViewRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
114 inline const Aws::String& GetName() const{ return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
117 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
118 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
119 inline CreateViewRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
120 inline CreateViewRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 inline CreateViewRequest& WithName(const char* value) { SetName(value); return *this;}
123
125
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateViewRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
135 inline CreateViewRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateViewRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
137 inline CreateViewRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateViewRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline CreateViewRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
140 inline CreateViewRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline CreateViewRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline CreateViewRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
144 private:
145
146 Aws::String m_instanceId;
147 bool m_instanceIdHasBeenSet = false;
148
149 Aws::String m_clientToken;
150 bool m_clientTokenHasBeenSet = false;
151
152 ViewStatus m_status;
153 bool m_statusHasBeenSet = false;
154
155 ViewInputContent m_content;
156 bool m_contentHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Connect
170} // namespace Aws
CreateViewRequest & WithName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateViewRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateViewRequest & WithDescription(const char *value)
CreateViewRequest & WithInstanceId(const Aws::String &value)
void SetContent(const ViewInputContent &value)
CreateViewRequest & WithStatus(const ViewStatus &value)
CreateViewRequest & WithInstanceId(const char *value)
CreateViewRequest & WithContent(ViewInputContent &&value)
CreateViewRequest & WithClientToken(const char *value)
void SetInstanceId(Aws::String &&value)
const Aws::String & GetInstanceId() const
CreateViewRequest & WithStatus(ViewStatus &&value)
CreateViewRequest & WithClientToken(const Aws::String &value)
CreateViewRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateViewRequest & AddTags(const char *key, const char *value)
CreateViewRequest & AddTags(const char *key, Aws::String &&value)
CreateViewRequest & WithContent(const ViewInputContent &value)
CreateViewRequest & WithDescription(Aws::String &&value)
CreateViewRequest & WithInstanceId(Aws::String &&value)
CreateViewRequest & AddTags(Aws::String &&key, const char *value)
void SetDescription(const Aws::String &value)
const ViewInputContent & GetContent() const
CreateViewRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetName(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
CreateViewRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateViewRequest & WithClientToken(Aws::String &&value)
CreateViewRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateViewRequest & WithDescription(const Aws::String &value)
void SetStatus(const ViewStatus &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetDescription() const
CreateViewRequest & WithName(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateViewRequest & WithName(Aws::String &&value)
CreateViewRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::String & GetClientToken() const
void SetContent(ViewInputContent &&value)
void SetClientToken(const Aws::String &value)
void SetClientToken(Aws::String &&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