AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Asset.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LicenseManager {
21namespace Model {
22
28class Asset {
29 public:
30 AWS_LICENSEMANAGER_API Asset() = default;
31 AWS_LICENSEMANAGER_API Asset(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LICENSEMANAGER_API Asset& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAssetArn() const { return m_assetArn; }
40 inline bool AssetArnHasBeenSet() const { return m_assetArnHasBeenSet; }
41 template <typename AssetArnT = Aws::String>
42 void SetAssetArn(AssetArnT&& value) {
43 m_assetArnHasBeenSet = true;
44 m_assetArn = std::forward<AssetArnT>(value);
45 }
46 template <typename AssetArnT = Aws::String>
47 Asset& WithAssetArn(AssetArnT&& value) {
48 SetAssetArn(std::forward<AssetArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetLatestAssetDiscoveryTime() const { return m_latestAssetDiscoveryTime; }
58 inline bool LatestAssetDiscoveryTimeHasBeenSet() const { return m_latestAssetDiscoveryTimeHasBeenSet; }
59 template <typename LatestAssetDiscoveryTimeT = Aws::Utils::DateTime>
60 void SetLatestAssetDiscoveryTime(LatestAssetDiscoveryTimeT&& value) {
61 m_latestAssetDiscoveryTimeHasBeenSet = true;
62 m_latestAssetDiscoveryTime = std::forward<LatestAssetDiscoveryTimeT>(value);
63 }
64 template <typename LatestAssetDiscoveryTimeT = Aws::Utils::DateTime>
65 Asset& WithLatestAssetDiscoveryTime(LatestAssetDiscoveryTimeT&& value) {
66 SetLatestAssetDiscoveryTime(std::forward<LatestAssetDiscoveryTimeT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_assetArn;
72
73 Aws::Utils::DateTime m_latestAssetDiscoveryTime{};
74 bool m_assetArnHasBeenSet = false;
75 bool m_latestAssetDiscoveryTimeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace LicenseManager
80} // namespace Aws
const Aws::String & GetAssetArn() const
Definition Asset.h:39
AWS_LICENSEMANAGER_API Asset()=default
void SetLatestAssetDiscoveryTime(LatestAssetDiscoveryTimeT &&value)
Definition Asset.h:60
void SetAssetArn(AssetArnT &&value)
Definition Asset.h:42
const Aws::Utils::DateTime & GetLatestAssetDiscoveryTime() const
Definition Asset.h:57
bool AssetArnHasBeenSet() const
Definition Asset.h:40
AWS_LICENSEMANAGER_API Asset & operator=(Aws::Utils::Json::JsonView jsonValue)
Asset & WithLatestAssetDiscoveryTime(LatestAssetDiscoveryTimeT &&value)
Definition Asset.h:65
AWS_LICENSEMANAGER_API Asset(Aws::Utils::Json::JsonView jsonValue)
Asset & WithAssetArn(AssetArnT &&value)
Definition Asset.h:47
bool LatestAssetDiscoveryTimeHasBeenSet() const
Definition Asset.h:58
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue