AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LicenseConversionContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/ProductCodeListItem.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LicenseManager {
22namespace Model {
23
31 public:
32 AWS_LICENSEMANAGER_API LicenseConversionContext() = default;
33 AWS_LICENSEMANAGER_API LicenseConversionContext(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
46 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
47 template <typename UsageOperationT = Aws::String>
48 void SetUsageOperation(UsageOperationT&& value) {
49 m_usageOperationHasBeenSet = true;
50 m_usageOperation = std::forward<UsageOperationT>(value);
51 }
52 template <typename UsageOperationT = Aws::String>
53 LicenseConversionContext& WithUsageOperation(UsageOperationT&& value) {
54 SetUsageOperation(std::forward<UsageOperationT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<ProductCodeListItem>& GetProductCodes() const { return m_productCodes; }
64 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
65 template <typename ProductCodesT = Aws::Vector<ProductCodeListItem>>
66 void SetProductCodes(ProductCodesT&& value) {
67 m_productCodesHasBeenSet = true;
68 m_productCodes = std::forward<ProductCodesT>(value);
69 }
70 template <typename ProductCodesT = Aws::Vector<ProductCodeListItem>>
72 SetProductCodes(std::forward<ProductCodesT>(value));
73 return *this;
74 }
75 template <typename ProductCodesT = ProductCodeListItem>
76 LicenseConversionContext& AddProductCodes(ProductCodesT&& value) {
77 m_productCodesHasBeenSet = true;
78 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_usageOperation;
84
86 bool m_usageOperationHasBeenSet = false;
87 bool m_productCodesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace LicenseManager
92} // namespace Aws
AWS_LICENSEMANAGER_API LicenseConversionContext(Aws::Utils::Json::JsonView jsonValue)
LicenseConversionContext & AddProductCodes(ProductCodesT &&value)
AWS_LICENSEMANAGER_API LicenseConversionContext()=default
AWS_LICENSEMANAGER_API LicenseConversionContext & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ProductCodeListItem > & GetProductCodes() const
LicenseConversionContext & WithProductCodes(ProductCodesT &&value)
LicenseConversionContext & WithUsageOperation(UsageOperationT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue