AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutCapacityAssignmentConfigurationRequest.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/CapacityAssignment.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 "PutCapacityAssignmentConfiguration"; }
33
34 AWS_ATHENA_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCapacityReservationName() const { return m_capacityReservationName; }
45 inline bool CapacityReservationNameHasBeenSet() const { return m_capacityReservationNameHasBeenSet; }
46 template<typename CapacityReservationNameT = Aws::String>
47 void SetCapacityReservationName(CapacityReservationNameT&& value) { m_capacityReservationNameHasBeenSet = true; m_capacityReservationName = std::forward<CapacityReservationNameT>(value); }
48 template<typename CapacityReservationNameT = Aws::String>
49 PutCapacityAssignmentConfigurationRequest& WithCapacityReservationName(CapacityReservationNameT&& value) { SetCapacityReservationName(std::forward<CapacityReservationNameT>(value)); return *this;}
51
53
56 inline const Aws::Vector<CapacityAssignment>& GetCapacityAssignments() const { return m_capacityAssignments; }
57 inline bool CapacityAssignmentsHasBeenSet() const { return m_capacityAssignmentsHasBeenSet; }
58 template<typename CapacityAssignmentsT = Aws::Vector<CapacityAssignment>>
59 void SetCapacityAssignments(CapacityAssignmentsT&& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments = std::forward<CapacityAssignmentsT>(value); }
60 template<typename CapacityAssignmentsT = Aws::Vector<CapacityAssignment>>
61 PutCapacityAssignmentConfigurationRequest& WithCapacityAssignments(CapacityAssignmentsT&& value) { SetCapacityAssignments(std::forward<CapacityAssignmentsT>(value)); return *this;}
62 template<typename CapacityAssignmentsT = CapacityAssignment>
63 PutCapacityAssignmentConfigurationRequest& AddCapacityAssignments(CapacityAssignmentsT&& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments.emplace_back(std::forward<CapacityAssignmentsT>(value)); return *this; }
65 private:
66
67 Aws::String m_capacityReservationName;
68 bool m_capacityReservationNameHasBeenSet = false;
69
70 Aws::Vector<CapacityAssignment> m_capacityAssignments;
71 bool m_capacityAssignmentsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Athena
76} // 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