AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
UpdateAccountSettingsRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/DeletionProtectionSettings.h>
10#include <aws/appconfig/model/VendedMetricsSettings.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppConfig {
16namespace Model {
17
21 public:
22 AWS_APPCONFIG_API UpdateAccountSettingsRequest() = 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 "UpdateAccountSettings"; }
29
30 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
31
33
42 inline const DeletionProtectionSettings& GetDeletionProtection() const { return m_deletionProtection; }
43 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
44 template <typename DeletionProtectionT = DeletionProtectionSettings>
45 void SetDeletionProtection(DeletionProtectionT&& value) {
46 m_deletionProtectionHasBeenSet = true;
47 m_deletionProtection = std::forward<DeletionProtectionT>(value);
48 }
49 template <typename DeletionProtectionT = DeletionProtectionSettings>
51 SetDeletionProtection(std::forward<DeletionProtectionT>(value));
52 return *this;
53 }
55
57
60 inline const VendedMetricsSettings& GetVendedMetrics() const { return m_vendedMetrics; }
61 inline bool VendedMetricsHasBeenSet() const { return m_vendedMetricsHasBeenSet; }
62 template <typename VendedMetricsT = VendedMetricsSettings>
63 void SetVendedMetrics(VendedMetricsT&& value) {
64 m_vendedMetricsHasBeenSet = true;
65 m_vendedMetrics = std::forward<VendedMetricsT>(value);
66 }
67 template <typename VendedMetricsT = VendedMetricsSettings>
69 SetVendedMetrics(std::forward<VendedMetricsT>(value));
70 return *this;
71 }
73 private:
74 DeletionProtectionSettings m_deletionProtection;
75
76 VendedMetricsSettings m_vendedMetrics;
77 bool m_deletionProtectionHasBeenSet = false;
78 bool m_vendedMetricsHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace AppConfig
83} // namespace Aws
const DeletionProtectionSettings & GetDeletionProtection() const
AWS_APPCONFIG_API UpdateAccountSettingsRequest()=default
UpdateAccountSettingsRequest & WithVendedMetrics(VendedMetricsT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
UpdateAccountSettingsRequest & WithDeletionProtection(DeletionProtectionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String