AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DescribeRetentionConfigurationsRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ConfigService {
16namespace Model {
17
21 public:
22 AWS_CONFIGSERVICE_API DescribeRetentionConfigurationsRequest() = 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 "DescribeRetentionConfigurations"; }
29
30 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
31
32 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
41 inline const Aws::Vector<Aws::String>& GetRetentionConfigurationNames() const { return m_retentionConfigurationNames; }
42 inline bool RetentionConfigurationNamesHasBeenSet() const { return m_retentionConfigurationNamesHasBeenSet; }
43 template <typename RetentionConfigurationNamesT = Aws::Vector<Aws::String>>
44 void SetRetentionConfigurationNames(RetentionConfigurationNamesT&& value) {
45 m_retentionConfigurationNamesHasBeenSet = true;
46 m_retentionConfigurationNames = std::forward<RetentionConfigurationNamesT>(value);
47 }
48 template <typename RetentionConfigurationNamesT = Aws::Vector<Aws::String>>
50 SetRetentionConfigurationNames(std::forward<RetentionConfigurationNamesT>(value));
51 return *this;
52 }
53 template <typename RetentionConfigurationNamesT = Aws::String>
55 m_retentionConfigurationNamesHasBeenSet = true;
56 m_retentionConfigurationNames.emplace_back(std::forward<RetentionConfigurationNamesT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_retentionConfigurationNames;
81
82 Aws::String m_nextToken;
83 bool m_retentionConfigurationNamesHasBeenSet = false;
84 bool m_nextTokenHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ConfigService
89} // namespace Aws
DescribeRetentionConfigurationsRequest & WithNextToken(NextTokenT &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeRetentionConfigurationsRequest & AddRetentionConfigurationNames(RetentionConfigurationNamesT &&value)
AWS_CONFIGSERVICE_API DescribeRetentionConfigurationsRequest()=default
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
DescribeRetentionConfigurationsRequest & WithRetentionConfigurationNames(RetentionConfigurationNamesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector