AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
PutAgentPreferencesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/PreferenceUpdate.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WellArchitected {
16namespace Model {
17
21 public:
22 AWS_WELLARCHITECTED_API PutAgentPreferencesRequest() = 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 "PutAgentPreferences"; }
29
30 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
31
35 AWS_WELLARCHITECTED_API EndpointParameters GetEndpointContextParams() const override;
36
38
42 inline const Aws::Vector<PreferenceUpdate>& GetPreferences() const { return m_preferences; }
43 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
44 template <typename PreferencesT = Aws::Vector<PreferenceUpdate>>
45 void SetPreferences(PreferencesT&& value) {
46 m_preferencesHasBeenSet = true;
47 m_preferences = std::forward<PreferencesT>(value);
48 }
49 template <typename PreferencesT = Aws::Vector<PreferenceUpdate>>
51 SetPreferences(std::forward<PreferencesT>(value));
52 return *this;
53 }
54 template <typename PreferencesT = PreferenceUpdate>
56 m_preferencesHasBeenSet = true;
57 m_preferences.emplace_back(std::forward<PreferencesT>(value));
58 return *this;
59 }
61 private:
63 bool m_preferencesHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace WellArchitected
68} // namespace Aws
PutAgentPreferencesRequest & WithPreferences(PreferencesT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
AWS_WELLARCHITECTED_API PutAgentPreferencesRequest()=default
const Aws::Vector< PreferenceUpdate > & GetPreferences() const
PutAgentPreferencesRequest & AddPreferences(PreferencesT &&value)
AWS_WELLARCHITECTED_API EndpointParameters GetEndpointContextParams() const override
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector