AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutCapacityAssignmentConfigurationRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/athena/model/CapacityAssignment.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:
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 "PutCapacityAssignmentConfiguration"; }
30
31 AWS_ATHENA_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetCapacityReservationName() const { return m_capacityReservationName; }
41 inline bool CapacityReservationNameHasBeenSet() const { return m_capacityReservationNameHasBeenSet; }
42 template <typename CapacityReservationNameT = Aws::String>
43 void SetCapacityReservationName(CapacityReservationNameT&& value) {
44 m_capacityReservationNameHasBeenSet = true;
45 m_capacityReservationName = std::forward<CapacityReservationNameT>(value);
46 }
47 template <typename CapacityReservationNameT = Aws::String>
49 SetCapacityReservationName(std::forward<CapacityReservationNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<CapacityAssignment>& GetCapacityAssignments() const { return m_capacityAssignments; }
59 inline bool CapacityAssignmentsHasBeenSet() const { return m_capacityAssignmentsHasBeenSet; }
60 template <typename CapacityAssignmentsT = Aws::Vector<CapacityAssignment>>
61 void SetCapacityAssignments(CapacityAssignmentsT&& value) {
62 m_capacityAssignmentsHasBeenSet = true;
63 m_capacityAssignments = std::forward<CapacityAssignmentsT>(value);
64 }
65 template <typename CapacityAssignmentsT = Aws::Vector<CapacityAssignment>>
67 SetCapacityAssignments(std::forward<CapacityAssignmentsT>(value));
68 return *this;
69 }
70 template <typename CapacityAssignmentsT = CapacityAssignment>
72 m_capacityAssignmentsHasBeenSet = true;
73 m_capacityAssignments.emplace_back(std::forward<CapacityAssignmentsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_capacityReservationName;
79
80 Aws::Vector<CapacityAssignment> m_capacityAssignments;
81 bool m_capacityReservationNameHasBeenSet = false;
82 bool m_capacityAssignmentsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Athena
87} // namespace Aws
PutCapacityAssignmentConfigurationRequest & WithCapacityReservationName(CapacityReservationNameT &&value)
PutCapacityAssignmentConfigurationRequest & WithCapacityAssignments(CapacityAssignmentsT &&value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutCapacityAssignmentConfigurationRequest & AddCapacityAssignments(CapacityAssignmentsT &&value)
AWS_ATHENA_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