AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContactTargetInfo.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSMContacts
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SSMCONTACTS_API ContactTargetInfo();
36 AWS_SSMCONTACTS_API ContactTargetInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetContactId() const{ return m_contactId; }
46 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
47 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
48 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
49 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
50 inline ContactTargetInfo& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
51 inline ContactTargetInfo& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
52 inline ContactTargetInfo& WithContactId(const char* value) { SetContactId(value); return *this;}
54
56
60 inline bool GetIsEssential() const{ return m_isEssential; }
61 inline bool IsEssentialHasBeenSet() const { return m_isEssentialHasBeenSet; }
62 inline void SetIsEssential(bool value) { m_isEssentialHasBeenSet = true; m_isEssential = value; }
63 inline ContactTargetInfo& WithIsEssential(bool value) { SetIsEssential(value); return *this;}
65 private:
66
67 Aws::String m_contactId;
68 bool m_contactIdHasBeenSet = false;
69
70 bool m_isEssential;
71 bool m_isEssentialHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SSMContacts
76} // namespace Aws
ContactTargetInfo & WithContactId(const Aws::String &value)
AWS_SSMCONTACTS_API ContactTargetInfo(Aws::Utils::Json::JsonView jsonValue)
ContactTargetInfo & WithContactId(const char *value)
ContactTargetInfo & WithContactId(Aws::String &&value)
void SetContactId(const Aws::String &value)
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSMCONTACTS_API ContactTargetInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactTargetInfo & WithIsEssential(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue