AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
AssociatedResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
9#include <aws/partnercentral-benefits/model/ResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralBenefits {
21namespace Model {
22
30 public:
31 AWS_PARTNERCENTRALBENEFITS_API AssociatedResource() = default;
32 AWS_PARTNERCENTRALBENEFITS_API AssociatedResource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALBENEFITS_API AssociatedResource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline ResourceType GetResourceType() const { return m_resourceType; }
42 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
43 inline void SetResourceType(ResourceType value) {
44 m_resourceTypeHasBeenSet = true;
45 m_resourceType = value;
46 }
48 SetResourceType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
58 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
59 template <typename ResourceArnT = Aws::String>
60 void SetResourceArn(ResourceArnT&& value) {
61 m_resourceArnHasBeenSet = true;
62 m_resourceArn = std::forward<ResourceArnT>(value);
63 }
64 template <typename ResourceArnT = Aws::String>
65 AssociatedResource& WithResourceArn(ResourceArnT&& value) {
66 SetResourceArn(std::forward<ResourceArnT>(value));
67 return *this;
68 }
70 private:
71 ResourceType m_resourceType{ResourceType::NOT_SET};
72
73 Aws::String m_resourceArn;
74 bool m_resourceTypeHasBeenSet = false;
75 bool m_resourceArnHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace PartnerCentralBenefits
80} // namespace Aws
AssociatedResource & WithResourceArn(ResourceArnT &&value)
AWS_PARTNERCENTRALBENEFITS_API AssociatedResource(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALBENEFITS_API AssociatedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALBENEFITS_API AssociatedResource()=default
AssociatedResource & WithResourceType(ResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue