AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LicenseConversionContext.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager/model/ProductCodeListItem.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 LicenseManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LICENSEMANAGER_API LicenseConversionContext() = default;
38 AWS_LICENSEMANAGER_API LicenseConversionContext(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
52 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
53 template<typename UsageOperationT = Aws::String>
54 void SetUsageOperation(UsageOperationT&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::forward<UsageOperationT>(value); }
55 template<typename UsageOperationT = Aws::String>
56 LicenseConversionContext& WithUsageOperation(UsageOperationT&& value) { SetUsageOperation(std::forward<UsageOperationT>(value)); return *this;}
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) { m_productCodesHasBeenSet = true; m_productCodes = std::forward<ProductCodesT>(value); }
67 template<typename ProductCodesT = Aws::Vector<ProductCodeListItem>>
68 LicenseConversionContext& WithProductCodes(ProductCodesT&& value) { SetProductCodes(std::forward<ProductCodesT>(value)); return *this;}
69 template<typename ProductCodesT = ProductCodeListItem>
70 LicenseConversionContext& AddProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes.emplace_back(std::forward<ProductCodesT>(value)); return *this; }
72 private:
73
74 Aws::String m_usageOperation;
75 bool m_usageOperationHasBeenSet = false;
76
78 bool m_productCodesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace LicenseManager
83} // 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