AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Contact.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-contacts/model/ContactType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSMContacts
23{
24namespace Model
25{
26
33 class Contact
34 {
35 public:
36 AWS_SSMCONTACTS_API Contact() = default;
37 AWS_SSMCONTACTS_API Contact(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMCONTACTS_API Contact& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetContactArn() const { return m_contactArn; }
47 inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; }
48 template<typename ContactArnT = Aws::String>
49 void SetContactArn(ContactArnT&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::forward<ContactArnT>(value); }
50 template<typename ContactArnT = Aws::String>
51 Contact& WithContactArn(ContactArnT&& value) { SetContactArn(std::forward<ContactArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetAlias() const { return m_alias; }
59 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
60 template<typename AliasT = Aws::String>
61 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
62 template<typename AliasT = Aws::String>
63 Contact& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDisplayName() const { return m_displayName; }
71 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
72 template<typename DisplayNameT = Aws::String>
73 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
74 template<typename DisplayNameT = Aws::String>
75 Contact& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
77
79
83 inline ContactType GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 inline void SetType(ContactType value) { m_typeHasBeenSet = true; m_type = value; }
86 inline Contact& WithType(ContactType value) { SetType(value); return *this;}
88 private:
89
90 Aws::String m_contactArn;
91 bool m_contactArnHasBeenSet = false;
92
93 Aws::String m_alias;
94 bool m_aliasHasBeenSet = false;
95
96 Aws::String m_displayName;
97 bool m_displayNameHasBeenSet = false;
98
100 bool m_typeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SSMContacts
105} // namespace Aws
AWS_SSMCONTACTS_API Contact(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(DisplayNameT &&value)
Definition Contact.h:73
AWS_SSMCONTACTS_API Contact & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContactArn(ContactArnT &&value)
Definition Contact.h:49
const Aws::String & GetContactArn() const
Definition Contact.h:46
void SetType(ContactType value)
Definition Contact.h:85
void SetAlias(AliasT &&value)
Definition Contact.h:61
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSMCONTACTS_API Contact()=default
Contact & WithType(ContactType value)
Definition Contact.h:86
const Aws::String & GetAlias() const
Definition Contact.h:58
bool ContactArnHasBeenSet() const
Definition Contact.h:47
Contact & WithContactArn(ContactArnT &&value)
Definition Contact.h:51
ContactType GetType() const
Definition Contact.h:83
Contact & WithDisplayName(DisplayNameT &&value)
Definition Contact.h:75
const Aws::String & GetDisplayName() const
Definition Contact.h:70
bool DisplayNameHasBeenSet() const
Definition Contact.h:71
Contact & WithAlias(AliasT &&value)
Definition Contact.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue