AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 CreateViewRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetClientToken() const { return m_clientToken; }
57 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
58 template<typename ClientTokenT = Aws::String>
59 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
60 template<typename ClientTokenT = Aws::String>
61 CreateViewRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
63
65
70 inline ViewStatus GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(ViewStatus value) { m_statusHasBeenSet = true; m_status = value; }
73 inline CreateViewRequest& WithStatus(ViewStatus value) { SetStatus(value); return *this;}
75
77
82 inline const ViewInputContent& GetContent() const { return m_content; }
83 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
84 template<typename ContentT = ViewInputContent>
85 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
86 template<typename ContentT = ViewInputContent>
87 CreateViewRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 CreateViewRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
106 inline const Aws::String& GetName() const { return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 template<typename NameT = Aws::String>
109 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
110 template<typename NameT = Aws::String>
111 CreateViewRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
113
115
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
124 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 CreateViewRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
126 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 CreateViewRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
129 }
131 private:
132
133 Aws::String m_instanceId;
134 bool m_instanceIdHasBeenSet = false;
135
136 Aws::String m_clientToken;
137 bool m_clientTokenHasBeenSet = false;
138
140 bool m_statusHasBeenSet = false;
141
142 ViewInputContent m_content;
143 bool m_contentHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Connect
157} // namespace Aws
CreateViewRequest & WithInstanceId(InstanceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetInstanceId(InstanceIdT &&value)
CreateViewRequest & WithClientToken(ClientTokenT &&value)
CreateViewRequest & WithDescription(DescriptionT &&value)
AWS_CONNECT_API CreateViewRequest()=default
CreateViewRequest & WithStatus(ViewStatus value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetInstanceId() const
const ViewInputContent & GetContent() const
CreateViewRequest & WithTags(TagsT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
CreateViewRequest & WithContent(ContentT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::String & GetClientToken() const
CreateViewRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateViewRequest & WithName(NameT &&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