AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ComputePlatform.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector2 {
20namespace Model {
21
28 public:
29 AWS_INSPECTOR2_API ComputePlatform() = default;
30 AWS_INSPECTOR2_API ComputePlatform(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetVendor() const { return m_vendor; }
39 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
40 template <typename VendorT = Aws::String>
41 void SetVendor(VendorT&& value) {
42 m_vendorHasBeenSet = true;
43 m_vendor = std::forward<VendorT>(value);
44 }
45 template <typename VendorT = Aws::String>
46 ComputePlatform& WithVendor(VendorT&& value) {
47 SetVendor(std::forward<VendorT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetProduct() const { return m_product; }
57 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
58 template <typename ProductT = Aws::String>
59 void SetProduct(ProductT&& value) {
60 m_productHasBeenSet = true;
61 m_product = std::forward<ProductT>(value);
62 }
63 template <typename ProductT = Aws::String>
64 ComputePlatform& WithProduct(ProductT&& value) {
65 SetProduct(std::forward<ProductT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetVersion() const { return m_version; }
75 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
76 template <typename VersionT = Aws::String>
77 void SetVersion(VersionT&& value) {
78 m_versionHasBeenSet = true;
79 m_version = std::forward<VersionT>(value);
80 }
81 template <typename VersionT = Aws::String>
82 ComputePlatform& WithVersion(VersionT&& value) {
83 SetVersion(std::forward<VersionT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_vendor;
89
90 Aws::String m_product;
91
92 Aws::String m_version;
93 bool m_vendorHasBeenSet = false;
94 bool m_productHasBeenSet = false;
95 bool m_versionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Inspector2
100} // namespace Aws
const Aws::String & GetVendor() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ComputePlatform & WithVendor(VendorT &&value)
AWS_INSPECTOR2_API ComputePlatform()=default
ComputePlatform & WithVersion(VersionT &&value)
const Aws::String & GetProduct() const
AWS_INSPECTOR2_API ComputePlatform(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersion() const
AWS_INSPECTOR2_API ComputePlatform & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputePlatform & WithProduct(ProductT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue