AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutRetentionSettingsRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/chime/model/RetentionSettings.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Chime {
16namespace Model {
17
21 public:
22 AWS_CHIME_API PutRetentionSettingsRequest() = 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 "PutRetentionSettings"; }
29
30 AWS_CHIME_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAccountId() const { return m_accountId; }
37 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
38 template <typename AccountIdT = Aws::String>
39 void SetAccountId(AccountIdT&& value) {
40 m_accountIdHasBeenSet = true;
41 m_accountId = std::forward<AccountIdT>(value);
42 }
43 template <typename AccountIdT = Aws::String>
45 SetAccountId(std::forward<AccountIdT>(value));
46 return *this;
47 }
49
51
54 inline const RetentionSettings& GetRetentionSettings() const { return m_retentionSettings; }
55 inline bool RetentionSettingsHasBeenSet() const { return m_retentionSettingsHasBeenSet; }
56 template <typename RetentionSettingsT = RetentionSettings>
57 void SetRetentionSettings(RetentionSettingsT&& value) {
58 m_retentionSettingsHasBeenSet = true;
59 m_retentionSettings = std::forward<RetentionSettingsT>(value);
60 }
61 template <typename RetentionSettingsT = RetentionSettings>
63 SetRetentionSettings(std::forward<RetentionSettingsT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_accountId;
69
70 RetentionSettings m_retentionSettings;
71 bool m_accountIdHasBeenSet = false;
72 bool m_retentionSettingsHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Chime
77} // namespace Aws
AWS_CHIME_API PutRetentionSettingsRequest()=default
AWS_CHIME_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutRetentionSettingsRequest & WithRetentionSettings(RetentionSettingsT &&value)
PutRetentionSettingsRequest & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String