AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateCapacityReservationRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/athena/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Athena {
17namespace Model {
18
22 public:
23 AWS_ATHENA_API CreateCapacityReservationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateCapacityReservation"; }
30
31 AWS_ATHENA_API Aws::String SerializePayload() const override;
32
34
36
39 inline int GetTargetDpus() const { return m_targetDpus; }
40 inline bool TargetDpusHasBeenSet() const { return m_targetDpusHasBeenSet; }
41 inline void SetTargetDpus(int value) {
42 m_targetDpusHasBeenSet = true;
43 m_targetDpus = value;
44 }
46 SetTargetDpus(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 template <typename TagsT = Aws::Vector<Tag>>
76 void SetTags(TagsT&& value) {
77 m_tagsHasBeenSet = true;
78 m_tags = std::forward<TagsT>(value);
79 }
80 template <typename TagsT = Aws::Vector<Tag>>
82 SetTags(std::forward<TagsT>(value));
83 return *this;
84 }
85 template <typename TagsT = Tag>
87 m_tagsHasBeenSet = true;
88 m_tags.emplace_back(std::forward<TagsT>(value));
89 return *this;
90 }
92 private:
93 int m_targetDpus{0};
94 bool m_targetDpusHasBeenSet = false;
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::Vector<Tag> m_tags;
100 bool m_tagsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Athena
105} // namespace Aws
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCapacityReservationRequest & WithTargetDpus(int value)
AWS_ATHENA_API Aws::String SerializePayload() const override
CreateCapacityReservationRequest & WithTags(TagsT &&value)
CreateCapacityReservationRequest & WithName(NameT &&value)
CreateCapacityReservationRequest & AddTags(TagsT &&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