AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EngagementContextDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/EngagementContextPayload.h>
10#include <aws/partnercentral-selling/model/EngagementContextType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralSelling {
22namespace Model {
23
32 public:
33 AWS_PARTNERCENTRALSELLING_API EngagementContextDetails() = default;
34 AWS_PARTNERCENTRALSELLING_API EngagementContextDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API EngagementContextDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
63 inline EngagementContextType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(EngagementContextType value) {
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74
76
80 inline const EngagementContextPayload& GetPayload() const { return m_payload; }
81 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
82 template <typename PayloadT = EngagementContextPayload>
83 void SetPayload(PayloadT&& value) {
84 m_payloadHasBeenSet = true;
85 m_payload = std::forward<PayloadT>(value);
86 }
87 template <typename PayloadT = EngagementContextPayload>
89 SetPayload(std::forward<PayloadT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_id;
95
97
98 EngagementContextPayload m_payload;
99 bool m_idHasBeenSet = false;
100 bool m_typeHasBeenSet = false;
101 bool m_payloadHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace PartnerCentralSelling
106} // namespace Aws
AWS_PARTNERCENTRALSELLING_API EngagementContextDetails()=default
AWS_PARTNERCENTRALSELLING_API EngagementContextDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API EngagementContextDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EngagementContextDetails & WithType(EngagementContextType value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue