AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LicenseConfigurationAssociation.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#include <aws/license-manager/model/ResourceType.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 LicenseConfigurationAssociation() = default;
35 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
42 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
43 template <typename ResourceArnT = Aws::String>
44 void SetResourceArn(ResourceArnT&& value) {
45 m_resourceArnHasBeenSet = true;
46 m_resourceArn = std::forward<ResourceArnT>(value);
47 }
48 template <typename ResourceArnT = Aws::String>
50 SetResourceArn(std::forward<ResourceArnT>(value));
51 return *this;
52 }
54
56
59 inline ResourceType GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 inline void SetResourceType(ResourceType value) {
62 m_resourceTypeHasBeenSet = true;
63 m_resourceType = value;
64 }
66 SetResourceType(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
77 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
78 template <typename ResourceOwnerIdT = Aws::String>
79 void SetResourceOwnerId(ResourceOwnerIdT&& value) {
80 m_resourceOwnerIdHasBeenSet = true;
81 m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value);
82 }
83 template <typename ResourceOwnerIdT = Aws::String>
85 SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetAssociationTime() const { return m_associationTime; }
95 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
96 template <typename AssociationTimeT = Aws::Utils::DateTime>
97 void SetAssociationTime(AssociationTimeT&& value) {
98 m_associationTimeHasBeenSet = true;
99 m_associationTime = std::forward<AssociationTimeT>(value);
100 }
101 template <typename AssociationTimeT = Aws::Utils::DateTime>
103 SetAssociationTime(std::forward<AssociationTimeT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetAmiAssociationScope() const { return m_amiAssociationScope; }
114 inline bool AmiAssociationScopeHasBeenSet() const { return m_amiAssociationScopeHasBeenSet; }
115 template <typename AmiAssociationScopeT = Aws::String>
116 void SetAmiAssociationScope(AmiAssociationScopeT&& value) {
117 m_amiAssociationScopeHasBeenSet = true;
118 m_amiAssociationScope = std::forward<AmiAssociationScopeT>(value);
119 }
120 template <typename AmiAssociationScopeT = Aws::String>
122 SetAmiAssociationScope(std::forward<AmiAssociationScopeT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_resourceArn;
128
129 ResourceType m_resourceType{ResourceType::NOT_SET};
130
131 Aws::String m_resourceOwnerId;
132
133 Aws::Utils::DateTime m_associationTime{};
134
135 Aws::String m_amiAssociationScope;
136 bool m_resourceArnHasBeenSet = false;
137 bool m_resourceTypeHasBeenSet = false;
138 bool m_resourceOwnerIdHasBeenSet = false;
139 bool m_associationTimeHasBeenSet = false;
140 bool m_amiAssociationScopeHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace LicenseManager
145} // namespace Aws
AWS_LICENSEMANAGER_API LicenseConfigurationAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationAssociation & WithAssociationTime(AssociationTimeT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseConfigurationAssociation & WithResourceType(ResourceType value)
LicenseConfigurationAssociation & WithResourceOwnerId(ResourceOwnerIdT &&value)
LicenseConfigurationAssociation & WithAmiAssociationScope(AmiAssociationScopeT &&value)
AWS_LICENSEMANAGER_API LicenseConfigurationAssociation(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationAssociation & WithResourceArn(ResourceArnT &&value)
AWS_LICENSEMANAGER_API LicenseConfigurationAssociation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue