AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutRetentionSettingsRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/chime/model/RetentionSettings.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Chime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CHIME_API PutRetentionSettingsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutRetentionSettings"; }
32
33 AWS_CHIME_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template<typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
44 template<typename AccountIdT = Aws::String>
45 PutRetentionSettingsRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
47
49
52 inline const RetentionSettings& GetRetentionSettings() const { return m_retentionSettings; }
53 inline bool RetentionSettingsHasBeenSet() const { return m_retentionSettingsHasBeenSet; }
54 template<typename RetentionSettingsT = RetentionSettings>
55 void SetRetentionSettings(RetentionSettingsT&& value) { m_retentionSettingsHasBeenSet = true; m_retentionSettings = std::forward<RetentionSettingsT>(value); }
56 template<typename RetentionSettingsT = RetentionSettings>
57 PutRetentionSettingsRequest& WithRetentionSettings(RetentionSettingsT&& value) { SetRetentionSettings(std::forward<RetentionSettingsT>(value)); return *this;}
59 private:
60
61 Aws::String m_accountId;
62 bool m_accountIdHasBeenSet = false;
63
64 RetentionSettings m_retentionSettings;
65 bool m_retentionSettingsHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace Chime
70} // 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