AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
50 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
51 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
52 inline LicenseConfigurationAssociation& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
53 inline LicenseConfigurationAssociation& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
54 inline LicenseConfigurationAssociation& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
56
58
61 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
62 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
63 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
64 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66 inline LicenseConfigurationAssociation& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
68
70
74 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
75 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
76 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
77 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
78 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
80 inline LicenseConfigurationAssociation& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
81 inline LicenseConfigurationAssociation& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetAssociationTime() const{ return m_associationTime; }
89 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
90 inline void SetAssociationTime(const Aws::Utils::DateTime& value) { m_associationTimeHasBeenSet = true; m_associationTime = value; }
91 inline void SetAssociationTime(Aws::Utils::DateTime&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::move(value); }
95
97
101 inline const Aws::String& GetAmiAssociationScope() const{ return m_amiAssociationScope; }
102 inline bool AmiAssociationScopeHasBeenSet() const { return m_amiAssociationScopeHasBeenSet; }
103 inline void SetAmiAssociationScope(const Aws::String& value) { m_amiAssociationScopeHasBeenSet = true; m_amiAssociationScope = value; }
104 inline void SetAmiAssociationScope(Aws::String&& value) { m_amiAssociationScopeHasBeenSet = true; m_amiAssociationScope = std::move(value); }
105 inline void SetAmiAssociationScope(const char* value) { m_amiAssociationScopeHasBeenSet = true; m_amiAssociationScope.assign(value); }
108 inline LicenseConfigurationAssociation& WithAmiAssociationScope(const char* value) { SetAmiAssociationScope(value); return *this;}
110 private:
111
112 Aws::String m_resourceArn;
113 bool m_resourceArnHasBeenSet = false;
114
115 ResourceType m_resourceType;
116 bool m_resourceTypeHasBeenSet = false;
117
118 Aws::String m_resourceOwnerId;
119 bool m_resourceOwnerIdHasBeenSet = false;
120
121 Aws::Utils::DateTime m_associationTime;
122 bool m_associationTimeHasBeenSet = false;
123
124 Aws::String m_amiAssociationScope;
125 bool m_amiAssociationScopeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace LicenseManager
130} // namespace Aws
LicenseConfigurationAssociation & WithResourceType(ResourceType &&value)
AWS_LICENSEMANAGER_API LicenseConfigurationAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationAssociation & WithResourceOwnerId(const char *value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseConfigurationAssociation & WithResourceOwnerId(const Aws::String &value)
LicenseConfigurationAssociation & WithResourceArn(const char *value)
LicenseConfigurationAssociation & WithAssociationTime(Aws::Utils::DateTime &&value)
LicenseConfigurationAssociation & WithResourceArn(Aws::String &&value)
LicenseConfigurationAssociation & WithAmiAssociationScope(Aws::String &&value)
AWS_LICENSEMANAGER_API LicenseConfigurationAssociation(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationAssociation & WithAmiAssociationScope(const char *value)
LicenseConfigurationAssociation & WithAssociationTime(const Aws::Utils::DateTime &value)
LicenseConfigurationAssociation & WithAmiAssociationScope(const Aws::String &value)
LicenseConfigurationAssociation & WithResourceOwnerId(Aws::String &&value)
LicenseConfigurationAssociation & WithResourceArn(const Aws::String &value)
LicenseConfigurationAssociation & WithResourceType(const ResourceType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue