AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContactArn(const Aws::String& value) { m_contactArnHasBeenSet = true; m_contactArn = value; }
49 inline void SetContactArn(Aws::String&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::move(value); }
50 inline void SetContactArn(const char* value) { m_contactArnHasBeenSet = true; m_contactArn.assign(value); }
51 inline Contact& WithContactArn(const Aws::String& value) { SetContactArn(value); return *this;}
52 inline Contact& WithContactArn(Aws::String&& value) { SetContactArn(std::move(value)); return *this;}
53 inline Contact& WithContactArn(const char* value) { SetContactArn(value); return *this;}
55
57
60 inline const Aws::String& GetAlias() const{ return m_alias; }
61 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
62 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
63 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
64 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
65 inline Contact& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
66 inline Contact& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
67 inline Contact& WithAlias(const char* value) { SetAlias(value); return *this;}
69
71
74 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
75 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
76 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
77 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
78 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
79 inline Contact& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
80 inline Contact& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
81 inline Contact& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
83
85
89 inline const ContactType& GetType() const{ return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(const ContactType& value) { m_typeHasBeenSet = true; m_type = value; }
92 inline void SetType(ContactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
93 inline Contact& WithType(const ContactType& value) { SetType(value); return *this;}
94 inline Contact& WithType(ContactType&& value) { SetType(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_contactArn;
99 bool m_contactArnHasBeenSet = false;
100
101 Aws::String m_alias;
102 bool m_aliasHasBeenSet = false;
103
104 Aws::String m_displayName;
105 bool m_displayNameHasBeenSet = false;
106
107 ContactType m_type;
108 bool m_typeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SSMContacts
113} // namespace Aws
Contact & WithDisplayName(Aws::String &&value)
Definition Contact.h:80
AWS_SSMCONTACTS_API Contact(Aws::Utils::Json::JsonView jsonValue)
const ContactType & GetType() const
Definition Contact.h:89
void SetContactArn(const char *value)
Definition Contact.h:50
AWS_SSMCONTACTS_API Contact & operator=(Aws::Utils::Json::JsonView jsonValue)
Contact & WithType(ContactType &&value)
Definition Contact.h:94
const Aws::String & GetContactArn() const
Definition Contact.h:46
Contact & WithContactArn(Aws::String &&value)
Definition Contact.h:52
void SetDisplayName(Aws::String &&value)
Definition Contact.h:77
Contact & WithAlias(const char *value)
Definition Contact.h:67
void SetContactArn(const Aws::String &value)
Definition Contact.h:48
void SetAlias(Aws::String &&value)
Definition Contact.h:63
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
Contact & WithType(const ContactType &value)
Definition Contact.h:93
Contact & WithAlias(Aws::String &&value)
Definition Contact.h:66
void SetDisplayName(const char *value)
Definition Contact.h:78
const Aws::String & GetAlias() const
Definition Contact.h:60
bool ContactArnHasBeenSet() const
Definition Contact.h:47
Contact & WithContactArn(const Aws::String &value)
Definition Contact.h:51
AWS_SSMCONTACTS_API Contact()
void SetAlias(const Aws::String &value)
Definition Contact.h:62
Contact & WithDisplayName(const Aws::String &value)
Definition Contact.h:79
void SetType(ContactType &&value)
Definition Contact.h:92
void SetDisplayName(const Aws::String &value)
Definition Contact.h:76
Contact & WithAlias(const Aws::String &value)
Definition Contact.h:65
void SetContactArn(Aws::String &&value)
Definition Contact.h:49
const Aws::String & GetDisplayName() const
Definition Contact.h:74
Contact & WithContactArn(const char *value)
Definition Contact.h:53
void SetAlias(const char *value)
Definition Contact.h:64
bool DisplayNameHasBeenSet() const
Definition Contact.h:75
Contact & WithDisplayName(const char *value)
Definition Contact.h:81
void SetType(const ContactType &value)
Definition Contact.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue