AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PutRetentionConfigurationRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9
10namespace Aws {
11namespace ConfigService {
12namespace Model {
13
17 public:
18 AWS_CONFIGSERVICE_API PutRetentionConfigurationRequest() = 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 "PutRetentionConfiguration"; }
25
26 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
27
28 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
29
31
35 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
36 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
37 inline void SetRetentionPeriodInDays(int value) {
38 m_retentionPeriodInDaysHasBeenSet = true;
39 m_retentionPeriodInDays = value;
40 }
43 return *this;
44 }
46 private:
47 int m_retentionPeriodInDays{0};
48 bool m_retentionPeriodInDaysHasBeenSet = false;
49};
50
51} // namespace Model
52} // namespace ConfigService
53} // namespace Aws
AWS_CONFIGSERVICE_API PutRetentionConfigurationRequest()=default
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutRetentionConfigurationRequest & WithRetentionPeriodInDays(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String