AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
AssociateDefaultVocabularyRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/VocabularyLanguageCode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API AssociateDefaultVocabularyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateDefaultVocabulary"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
39 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
40 template <typename InstanceIdT = Aws::String>
41 void SetInstanceId(InstanceIdT&& value) {
42 m_instanceIdHasBeenSet = true;
43 m_instanceId = std::forward<InstanceIdT>(value);
44 }
45 template <typename InstanceIdT = Aws::String>
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
59 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
60 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
62 m_languageCodeHasBeenSet = true;
63 m_languageCode = value;
64 }
66 SetLanguageCode(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetVocabularyId() const { return m_vocabularyId; }
77 inline bool VocabularyIdHasBeenSet() const { return m_vocabularyIdHasBeenSet; }
78 template <typename VocabularyIdT = Aws::String>
79 void SetVocabularyId(VocabularyIdT&& value) {
80 m_vocabularyIdHasBeenSet = true;
81 m_vocabularyId = std::forward<VocabularyIdT>(value);
82 }
83 template <typename VocabularyIdT = Aws::String>
85 SetVocabularyId(std::forward<VocabularyIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_instanceId;
91
93
94 Aws::String m_vocabularyId;
95 bool m_instanceIdHasBeenSet = false;
96 bool m_languageCodeHasBeenSet = false;
97 bool m_vocabularyIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Connect
102} // namespace Aws
AssociateDefaultVocabularyRequest & WithLanguageCode(VocabularyLanguageCode value)
AssociateDefaultVocabularyRequest & WithVocabularyId(VocabularyIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
AssociateDefaultVocabularyRequest & WithInstanceId(InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String