AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetCapacityReservationName(const Aws::String& value) { m_capacityReservationNameHasBeenSet = true; m_capacityReservationName = value; }
47 inline void SetCapacityReservationName(Aws::String&& value) { m_capacityReservationNameHasBeenSet = true; m_capacityReservationName = std::move(value); }
48 inline void SetCapacityReservationName(const char* value) { m_capacityReservationNameHasBeenSet = true; m_capacityReservationName.assign(value); }
53
55
58 inline const Aws::Vector<CapacityAssignment>& GetCapacityAssignments() const{ return m_capacityAssignments; }
59 inline bool CapacityAssignmentsHasBeenSet() const { return m_capacityAssignmentsHasBeenSet; }
60 inline void SetCapacityAssignments(const Aws::Vector<CapacityAssignment>& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments = value; }
61 inline void SetCapacityAssignments(Aws::Vector<CapacityAssignment>&& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments = std::move(value); }
64 inline PutCapacityAssignmentConfigurationRequest& AddCapacityAssignments(const CapacityAssignment& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments.push_back(value); return *this; }
65 inline PutCapacityAssignmentConfigurationRequest& AddCapacityAssignments(CapacityAssignment&& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments.push_back(std::move(value)); return *this; }
67 private:
68
69 Aws::String m_capacityReservationName;
70 bool m_capacityReservationNameHasBeenSet = false;
71
72 Aws::Vector<CapacityAssignment> m_capacityAssignments;
73 bool m_capacityAssignmentsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Athena
78} // namespace Aws
PutCapacityAssignmentConfigurationRequest & WithCapacityAssignments(Aws::Vector< CapacityAssignment > &&value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutCapacityAssignmentConfigurationRequest & WithCapacityReservationName(Aws::String &&value)
PutCapacityAssignmentConfigurationRequest & WithCapacityReservationName(const Aws::String &value)
PutCapacityAssignmentConfigurationRequest & AddCapacityAssignments(const CapacityAssignment &value)
AWS_ATHENA_API Aws::String SerializePayload() const override
PutCapacityAssignmentConfigurationRequest & WithCapacityReservationName(const char *value)
PutCapacityAssignmentConfigurationRequest & WithCapacityAssignments(const Aws::Vector< CapacityAssignment > &value)
PutCapacityAssignmentConfigurationRequest & AddCapacityAssignments(CapacityAssignment &&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