AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
MeteredProductSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace deadline {
20namespace Model {
21
28 public:
29 AWS_DEADLINE_API MeteredProductSummary() = default;
32 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetProductId() const { return m_productId; }
39 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
40 template <typename ProductIdT = Aws::String>
41 void SetProductId(ProductIdT&& value) {
42 m_productIdHasBeenSet = true;
43 m_productId = std::forward<ProductIdT>(value);
44 }
45 template <typename ProductIdT = Aws::String>
46 MeteredProductSummary& WithProductId(ProductIdT&& value) {
47 SetProductId(std::forward<ProductIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetFamily() const { return m_family; }
57 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
58 template <typename FamilyT = Aws::String>
59 void SetFamily(FamilyT&& value) {
60 m_familyHasBeenSet = true;
61 m_family = std::forward<FamilyT>(value);
62 }
63 template <typename FamilyT = Aws::String>
65 SetFamily(std::forward<FamilyT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetVendor() const { return m_vendor; }
75 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
76 template <typename VendorT = Aws::String>
77 void SetVendor(VendorT&& value) {
78 m_vendorHasBeenSet = true;
79 m_vendor = std::forward<VendorT>(value);
80 }
81 template <typename VendorT = Aws::String>
83 SetVendor(std::forward<VendorT>(value));
84 return *this;
85 }
87
89
92 inline int GetPort() const { return m_port; }
93 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
94 inline void SetPort(int value) {
95 m_portHasBeenSet = true;
96 m_port = value;
97 }
98 inline MeteredProductSummary& WithPort(int value) {
99 SetPort(value);
100 return *this;
101 }
103 private:
104 Aws::String m_productId;
105
106 Aws::String m_family;
107
108 Aws::String m_vendor;
109
110 int m_port{0};
111 bool m_productIdHasBeenSet = false;
112 bool m_familyHasBeenSet = false;
113 bool m_vendorHasBeenSet = false;
114 bool m_portHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace deadline
119} // namespace Aws
MeteredProductSummary & WithPort(int value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API MeteredProductSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API MeteredProductSummary(Aws::Utils::Json::JsonView jsonValue)
MeteredProductSummary & WithVendor(VendorT &&value)
MeteredProductSummary & WithProductId(ProductIdT &&value)
MeteredProductSummary & WithFamily(FamilyT &&value)
AWS_DEADLINE_API MeteredProductSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue