AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
FleetConfiguration.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/model/CustomerManagedFleetConfiguration.h>
9#include <aws/deadline/model/ServiceManagedEc2FleetConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
29 public:
30 AWS_DEADLINE_API FleetConfiguration() = default;
33 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const CustomerManagedFleetConfiguration& GetCustomerManaged() const { return m_customerManaged; }
40 inline bool CustomerManagedHasBeenSet() const { return m_customerManagedHasBeenSet; }
41 template <typename CustomerManagedT = CustomerManagedFleetConfiguration>
42 void SetCustomerManaged(CustomerManagedT&& value) {
43 m_customerManagedHasBeenSet = true;
44 m_customerManaged = std::forward<CustomerManagedT>(value);
45 }
46 template <typename CustomerManagedT = CustomerManagedFleetConfiguration>
47 FleetConfiguration& WithCustomerManaged(CustomerManagedT&& value) {
48 SetCustomerManaged(std::forward<CustomerManagedT>(value));
49 return *this;
50 }
52
54
57 inline const ServiceManagedEc2FleetConfiguration& GetServiceManagedEc2() const { return m_serviceManagedEc2; }
58 inline bool ServiceManagedEc2HasBeenSet() const { return m_serviceManagedEc2HasBeenSet; }
59 template <typename ServiceManagedEc2T = ServiceManagedEc2FleetConfiguration>
60 void SetServiceManagedEc2(ServiceManagedEc2T&& value) {
61 m_serviceManagedEc2HasBeenSet = true;
62 m_serviceManagedEc2 = std::forward<ServiceManagedEc2T>(value);
63 }
64 template <typename ServiceManagedEc2T = ServiceManagedEc2FleetConfiguration>
65 FleetConfiguration& WithServiceManagedEc2(ServiceManagedEc2T&& value) {
66 SetServiceManagedEc2(std::forward<ServiceManagedEc2T>(value));
67 return *this;
68 }
70 private:
71 CustomerManagedFleetConfiguration m_customerManaged;
72
73 ServiceManagedEc2FleetConfiguration m_serviceManagedEc2;
74 bool m_customerManagedHasBeenSet = false;
75 bool m_serviceManagedEc2HasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace deadline
80} // namespace Aws
const CustomerManagedFleetConfiguration & GetCustomerManaged() const
FleetConfiguration & WithCustomerManaged(CustomerManagedT &&value)
AWS_DEADLINE_API FleetConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FleetConfiguration & WithServiceManagedEc2(ServiceManagedEc2T &&value)
AWS_DEADLINE_API FleetConfiguration()=default
void SetCustomerManaged(CustomerManagedT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const ServiceManagedEc2FleetConfiguration & GetServiceManagedEc2() const
AWS_DEADLINE_API FleetConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetServiceManagedEc2(ServiceManagedEc2T &&value)
Aws::Utils::Json::JsonValue JsonValue