AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateCapacityReservationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateCapacityReservationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateCapacityReservationRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
67 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
70 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
71 inline CreateCapacityReservationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
72 inline CreateCapacityReservationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
73 inline CreateCapacityReservationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
74 inline CreateCapacityReservationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
76 private:
77
78 int m_targetDpus;
79 bool m_targetDpusHasBeenSet = false;
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::Vector<Tag> m_tags;
85 bool m_tagsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Athena
90} // namespace Aws
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCapacityReservationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateCapacityReservationRequest & WithName(const Aws::String &value)
CreateCapacityReservationRequest & WithName(Aws::String &&value)
CreateCapacityReservationRequest & WithName(const char *value)
CreateCapacityReservationRequest & WithTargetDpus(int value)
AWS_ATHENA_API Aws::String SerializePayload() const override
CreateCapacityReservationRequest & AddTags(Tag &&value)
CreateCapacityReservationRequest & AddTags(const Tag &value)
CreateCapacityReservationRequest & WithTags(const Aws::Vector< Tag > &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