AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UserUnion.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConnectCases {
20namespace Model {
21
28class UserUnion {
29 public:
30 AWS_CONNECTCASES_API UserUnion() = default;
31 AWS_CONNECTCASES_API UserUnion(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCASES_API UserUnion& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUserArn() const { return m_userArn; }
40 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
41 template <typename UserArnT = Aws::String>
42 void SetUserArn(UserArnT&& value) {
43 m_userArnHasBeenSet = true;
44 m_userArn = std::forward<UserArnT>(value);
45 }
46 template <typename UserArnT = Aws::String>
47 UserUnion& WithUserArn(UserArnT&& value) {
48 SetUserArn(std::forward<UserArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCustomEntity() const { return m_customEntity; }
58 inline bool CustomEntityHasBeenSet() const { return m_customEntityHasBeenSet; }
59 template <typename CustomEntityT = Aws::String>
60 void SetCustomEntity(CustomEntityT&& value) {
61 m_customEntityHasBeenSet = true;
62 m_customEntity = std::forward<CustomEntityT>(value);
63 }
64 template <typename CustomEntityT = Aws::String>
65 UserUnion& WithCustomEntity(CustomEntityT&& value) {
66 SetCustomEntity(std::forward<CustomEntityT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_userArn;
72
73 Aws::String m_customEntity;
74 bool m_userArnHasBeenSet = false;
75 bool m_customEntityHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ConnectCases
80} // namespace Aws
void SetUserArn(UserArnT &&value)
Definition UserUnion.h:42
const Aws::String & GetCustomEntity() const
Definition UserUnion.h:57
const Aws::String & GetUserArn() const
Definition UserUnion.h:39
void SetCustomEntity(CustomEntityT &&value)
Definition UserUnion.h:60
AWS_CONNECTCASES_API UserUnion & operator=(Aws::Utils::Json::JsonView jsonValue)
UserUnion & WithUserArn(UserArnT &&value)
Definition UserUnion.h:47
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCASES_API UserUnion(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API UserUnion()=default
UserUnion & WithCustomEntity(CustomEntityT &&value)
Definition UserUnion.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue