AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ResourceAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
9#include <aws/network-security-manager/model/ServiceResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkSecurityManager {
21namespace Model {
22
30 public:
31 AWS_NETWORKSECURITYMANAGER_API ResourceAssociation() = default;
32 AWS_NETWORKSECURITYMANAGER_API ResourceAssociation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKSECURITYMANAGER_API ResourceAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
59 inline ServiceResourceType GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 m_resourceTypeHasBeenSet = true;
63 m_resourceType = value;
64 }
66 SetResourceType(value);
67 return *this;
68 }
70 private:
71 Aws::String m_arn;
72
74 bool m_arnHasBeenSet = false;
75 bool m_resourceTypeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace NetworkSecurityManager
80} // namespace Aws
ResourceAssociation & WithResourceType(ServiceResourceType value)
AWS_NETWORKSECURITYMANAGER_API ResourceAssociation()=default
AWS_NETWORKSECURITYMANAGER_API ResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API ResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue