AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedInstanceOptions.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/discovery/model/PurchasingOption.h>
9#include <aws/discovery/model/OfferingClass.h>
10#include <aws/discovery/model/TermLength.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 ApplicationDiscoveryService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPLICATIONDISCOVERYSERVICE_API ReservedInstanceOptions();
38 AWS_APPLICATIONDISCOVERYSERVICE_API ReservedInstanceOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONDISCOVERYSERVICE_API ReservedInstanceOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PurchasingOption& GetPurchasingOption() const{ return m_purchasingOption; }
48 inline bool PurchasingOptionHasBeenSet() const { return m_purchasingOptionHasBeenSet; }
49 inline void SetPurchasingOption(const PurchasingOption& value) { m_purchasingOptionHasBeenSet = true; m_purchasingOption = value; }
50 inline void SetPurchasingOption(PurchasingOption&& value) { m_purchasingOptionHasBeenSet = true; m_purchasingOption = std::move(value); }
52 inline ReservedInstanceOptions& WithPurchasingOption(PurchasingOption&& value) { SetPurchasingOption(std::move(value)); return *this;}
54
56
60 inline const OfferingClass& GetOfferingClass() const{ return m_offeringClass; }
61 inline bool OfferingClassHasBeenSet() const { return m_offeringClassHasBeenSet; }
62 inline void SetOfferingClass(const OfferingClass& value) { m_offeringClassHasBeenSet = true; m_offeringClass = value; }
63 inline void SetOfferingClass(OfferingClass&& value) { m_offeringClassHasBeenSet = true; m_offeringClass = std::move(value); }
64 inline ReservedInstanceOptions& WithOfferingClass(const OfferingClass& value) { SetOfferingClass(value); return *this;}
65 inline ReservedInstanceOptions& WithOfferingClass(OfferingClass&& value) { SetOfferingClass(std::move(value)); return *this;}
67
69
72 inline const TermLength& GetTermLength() const{ return m_termLength; }
73 inline bool TermLengthHasBeenSet() const { return m_termLengthHasBeenSet; }
74 inline void SetTermLength(const TermLength& value) { m_termLengthHasBeenSet = true; m_termLength = value; }
75 inline void SetTermLength(TermLength&& value) { m_termLengthHasBeenSet = true; m_termLength = std::move(value); }
76 inline ReservedInstanceOptions& WithTermLength(const TermLength& value) { SetTermLength(value); return *this;}
77 inline ReservedInstanceOptions& WithTermLength(TermLength&& value) { SetTermLength(std::move(value)); return *this;}
79 private:
80
81 PurchasingOption m_purchasingOption;
82 bool m_purchasingOptionHasBeenSet = false;
83
84 OfferingClass m_offeringClass;
85 bool m_offeringClassHasBeenSet = false;
86
87 TermLength m_termLength;
88 bool m_termLengthHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ApplicationDiscoveryService
93} // namespace Aws
ReservedInstanceOptions & WithOfferingClass(OfferingClass &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API ReservedInstanceOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONDISCOVERYSERVICE_API ReservedInstanceOptions()
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReservedInstanceOptions & WithOfferingClass(const OfferingClass &value)
ReservedInstanceOptions & WithPurchasingOption(PurchasingOption &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API ReservedInstanceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedInstanceOptions & WithPurchasingOption(const PurchasingOption &value)
ReservedInstanceOptions & WithTermLength(const TermLength &value)
Aws::Utils::Json::JsonValue JsonValue