AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityAssignmentConfiguration.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/athena/model/CapacityAssignment.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Athena
24{
25namespace Model
26{
27
39 {
40 public:
44 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetCapacityReservationName() const{ return m_capacityReservationName; }
53 inline bool CapacityReservationNameHasBeenSet() const { return m_capacityReservationNameHasBeenSet; }
54 inline void SetCapacityReservationName(const Aws::String& value) { m_capacityReservationNameHasBeenSet = true; m_capacityReservationName = value; }
55 inline void SetCapacityReservationName(Aws::String&& value) { m_capacityReservationNameHasBeenSet = true; m_capacityReservationName = std::move(value); }
56 inline void SetCapacityReservationName(const char* value) { m_capacityReservationNameHasBeenSet = true; m_capacityReservationName.assign(value); }
61
63
67 inline const Aws::Vector<CapacityAssignment>& GetCapacityAssignments() const{ return m_capacityAssignments; }
68 inline bool CapacityAssignmentsHasBeenSet() const { return m_capacityAssignmentsHasBeenSet; }
69 inline void SetCapacityAssignments(const Aws::Vector<CapacityAssignment>& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments = value; }
70 inline void SetCapacityAssignments(Aws::Vector<CapacityAssignment>&& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments = std::move(value); }
73 inline CapacityAssignmentConfiguration& AddCapacityAssignments(const CapacityAssignment& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments.push_back(value); return *this; }
74 inline CapacityAssignmentConfiguration& AddCapacityAssignments(CapacityAssignment&& value) { m_capacityAssignmentsHasBeenSet = true; m_capacityAssignments.push_back(std::move(value)); return *this; }
76 private:
77
78 Aws::String m_capacityReservationName;
79 bool m_capacityReservationNameHasBeenSet = false;
80
81 Aws::Vector<CapacityAssignment> m_capacityAssignments;
82 bool m_capacityAssignmentsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Athena
87} // namespace Aws
CapacityAssignmentConfiguration & AddCapacityAssignments(CapacityAssignment &&value)
CapacityAssignmentConfiguration & WithCapacityAssignments(const Aws::Vector< CapacityAssignment > &value)
CapacityAssignmentConfiguration & WithCapacityReservationName(const char *value)
CapacityAssignmentConfiguration & WithCapacityReservationName(Aws::String &&value)
CapacityAssignmentConfiguration & WithCapacityReservationName(const Aws::String &value)
void SetCapacityAssignments(const Aws::Vector< CapacityAssignment > &value)
const Aws::Vector< CapacityAssignment > & GetCapacityAssignments() const
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ATHENA_API CapacityAssignmentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCapacityAssignments(Aws::Vector< CapacityAssignment > &&value)
CapacityAssignmentConfiguration & WithCapacityAssignments(Aws::Vector< CapacityAssignment > &&value)
CapacityAssignmentConfiguration & AddCapacityAssignments(const CapacityAssignment &value)
AWS_ATHENA_API CapacityAssignmentConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue