AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAccountPreferencesRequest.h
1
6#pragma once
7#include <aws/chatbot/ChatbotRequest.h>
8#include <aws/chatbot/Chatbot_EXPORTS.h>
9
10namespace Aws {
11namespace chatbot {
12namespace Model {
13
17 public:
18 AWS_CHATBOT_API UpdateAccountPreferencesRequest() = default;
19
20 // Service request name is the Operation name which will send this request out,
21 // each operation should has unique request name, so that we can get operation's name from this request.
22 // Note: this is not true for response, multiple operations may have the same response name,
23 // so we can not get operation's name from response.
24 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccountPreferences"; }
25
26 AWS_CHATBOT_API Aws::String SerializePayload() const override;
27
29
32 inline bool GetUserAuthorizationRequired() const { return m_userAuthorizationRequired; }
33 inline bool UserAuthorizationRequiredHasBeenSet() const { return m_userAuthorizationRequiredHasBeenSet; }
34 inline void SetUserAuthorizationRequired(bool value) {
35 m_userAuthorizationRequiredHasBeenSet = true;
36 m_userAuthorizationRequired = value;
37 }
40 return *this;
41 }
43
45
56 inline bool GetTrainingDataCollectionEnabled() const { return m_trainingDataCollectionEnabled; }
57 inline bool TrainingDataCollectionEnabledHasBeenSet() const { return m_trainingDataCollectionEnabledHasBeenSet; }
58 inline void SetTrainingDataCollectionEnabled(bool value) {
59 m_trainingDataCollectionEnabledHasBeenSet = true;
60 m_trainingDataCollectionEnabled = value;
61 }
64 return *this;
65 }
67 private:
68 bool m_userAuthorizationRequired{false};
69
70 bool m_trainingDataCollectionEnabled{false};
71 bool m_userAuthorizationRequiredHasBeenSet = false;
72 bool m_trainingDataCollectionEnabledHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace chatbot
77} // namespace Aws
AWS_CHATBOT_API Aws::String SerializePayload() const override
UpdateAccountPreferencesRequest & WithUserAuthorizationRequired(bool value)
AWS_CHATBOT_API UpdateAccountPreferencesRequest()=default
UpdateAccountPreferencesRequest & WithTrainingDataCollectionEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String