AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
DescribeServicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/support/SupportRequest.h>
10#include <aws/support/Support_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Support {
16namespace Model {
17
21 public:
22 AWS_SUPPORT_API DescribeServicesRequest() = 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 "DescribeServices"; }
29
30 AWS_SUPPORT_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::Vector<Aws::String>& GetServiceCodeList() const { return m_serviceCodeList; }
40 inline bool ServiceCodeListHasBeenSet() const { return m_serviceCodeListHasBeenSet; }
41 template <typename ServiceCodeListT = Aws::Vector<Aws::String>>
42 void SetServiceCodeList(ServiceCodeListT&& value) {
43 m_serviceCodeListHasBeenSet = true;
44 m_serviceCodeList = std::forward<ServiceCodeListT>(value);
45 }
46 template <typename ServiceCodeListT = Aws::Vector<Aws::String>>
47 DescribeServicesRequest& WithServiceCodeList(ServiceCodeListT&& value) {
48 SetServiceCodeList(std::forward<ServiceCodeListT>(value));
49 return *this;
50 }
51 template <typename ServiceCodeListT = Aws::String>
52 DescribeServicesRequest& AddServiceCodeList(ServiceCodeListT&& value) {
53 m_serviceCodeListHasBeenSet = true;
54 m_serviceCodeList.emplace_back(std::forward<ServiceCodeListT>(value));
55 return *this;
56 }
58
60
67 inline const Aws::String& GetLanguage() const { return m_language; }
68 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
69 template <typename LanguageT = Aws::String>
70 void SetLanguage(LanguageT&& value) {
71 m_languageHasBeenSet = true;
72 m_language = std::forward<LanguageT>(value);
73 }
74 template <typename LanguageT = Aws::String>
76 SetLanguage(std::forward<LanguageT>(value));
77 return *this;
78 }
80
82
89 inline bool GetDryRun() const { return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) {
92 m_dryRunHasBeenSet = true;
93 m_dryRun = value;
94 }
95 inline DescribeServicesRequest& WithDryRun(bool value) {
96 SetDryRun(value);
97 return *this;
98 }
100 private:
101 Aws::Vector<Aws::String> m_serviceCodeList;
102
103 Aws::String m_language;
104
105 bool m_dryRun{false};
106 bool m_serviceCodeListHasBeenSet = false;
107 bool m_languageHasBeenSet = false;
108 bool m_dryRunHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Support
113} // namespace Aws
DescribeServicesRequest & WithLanguage(LanguageT &&value)
DescribeServicesRequest & WithServiceCodeList(ServiceCodeListT &&value)
virtual const char * GetServiceRequestName() const override
DescribeServicesRequest & AddServiceCodeList(ServiceCodeListT &&value)
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetServiceCodeList() const
DescribeServicesRequest & WithDryRun(bool value)
AWS_SUPPORT_API DescribeServicesRequest()=default
AWS_SUPPORT_API Aws::String SerializePayload() const override
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