AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCapacityReservationRequest.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/AthenaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/athena/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Athena
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ATHENA_API CreateCapacityReservationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateCapacityReservation"; }
33
34 AWS_ATHENA_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline int GetTargetDpus() const { return m_targetDpus; }
44 inline bool TargetDpusHasBeenSet() const { return m_targetDpusHasBeenSet; }
45 inline void SetTargetDpus(int value) { m_targetDpusHasBeenSet = true; m_targetDpus = value; }
46 inline CreateCapacityReservationRequest& WithTargetDpus(int value) { SetTargetDpus(value); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 CreateCapacityReservationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 template<typename TagsT = Aws::Vector<Tag>>
68 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
69 template<typename TagsT = Aws::Vector<Tag>>
70 CreateCapacityReservationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
71 template<typename TagsT = Tag>
72 CreateCapacityReservationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
74 private:
75
76 int m_targetDpus{0};
77 bool m_targetDpusHasBeenSet = false;
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 Aws::Vector<Tag> m_tags;
83 bool m_tagsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Athena
88} // 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