AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LicenseConfigurationAssociation.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/license-manager/model/ResourceType.h>
10#include <aws/core/utils/DateTime.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 LicenseConfigurationAssociation() = default;
40 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
48 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
49 template<typename ResourceArnT = Aws::String>
50 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
51 template<typename ResourceArnT = Aws::String>
52 LicenseConfigurationAssociation& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
54
56
59 inline ResourceType GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
64
66
70 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
71 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
72 template<typename ResourceOwnerIdT = Aws::String>
73 void SetResourceOwnerId(ResourceOwnerIdT&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value); }
74 template<typename ResourceOwnerIdT = Aws::String>
75 LicenseConfigurationAssociation& WithResourceOwnerId(ResourceOwnerIdT&& value) { SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetAssociationTime() const { return m_associationTime; }
83 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
84 template<typename AssociationTimeT = Aws::Utils::DateTime>
85 void SetAssociationTime(AssociationTimeT&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::forward<AssociationTimeT>(value); }
86 template<typename AssociationTimeT = Aws::Utils::DateTime>
87 LicenseConfigurationAssociation& WithAssociationTime(AssociationTimeT&& value) { SetAssociationTime(std::forward<AssociationTimeT>(value)); return *this;}
89
91
95 inline const Aws::String& GetAmiAssociationScope() const { return m_amiAssociationScope; }
96 inline bool AmiAssociationScopeHasBeenSet() const { return m_amiAssociationScopeHasBeenSet; }
97 template<typename AmiAssociationScopeT = Aws::String>
98 void SetAmiAssociationScope(AmiAssociationScopeT&& value) { m_amiAssociationScopeHasBeenSet = true; m_amiAssociationScope = std::forward<AmiAssociationScopeT>(value); }
99 template<typename AmiAssociationScopeT = Aws::String>
100 LicenseConfigurationAssociation& WithAmiAssociationScope(AmiAssociationScopeT&& value) { SetAmiAssociationScope(std::forward<AmiAssociationScopeT>(value)); return *this;}
102 private:
103
104 Aws::String m_resourceArn;
105 bool m_resourceArnHasBeenSet = false;
106
107 ResourceType m_resourceType{ResourceType::NOT_SET};
108 bool m_resourceTypeHasBeenSet = false;
109
110 Aws::String m_resourceOwnerId;
111 bool m_resourceOwnerIdHasBeenSet = false;
112
113 Aws::Utils::DateTime m_associationTime{};
114 bool m_associationTimeHasBeenSet = false;
115
116 Aws::String m_amiAssociationScope;
117 bool m_amiAssociationScopeHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace LicenseManager
122} // 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