AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ContactIdT = Aws::String>
48 void SetContactId(ContactIdT&& value) { m_contactIdHasBeenSet = true; m_contactId = std::forward<ContactIdT>(value); }
49 template<typename ContactIdT = Aws::String>
50 ContactTargetInfo& WithContactId(ContactIdT&& value) { SetContactId(std::forward<ContactIdT>(value)); return *this;}
52
54
58 inline bool GetIsEssential() const { return m_isEssential; }
59 inline bool IsEssentialHasBeenSet() const { return m_isEssentialHasBeenSet; }
60 inline void SetIsEssential(bool value) { m_isEssentialHasBeenSet = true; m_isEssential = value; }
61 inline ContactTargetInfo& WithIsEssential(bool value) { SetIsEssential(value); return *this;}
63 private:
64
65 Aws::String m_contactId;
66 bool m_contactIdHasBeenSet = false;
67
68 bool m_isEssential{false};
69 bool m_isEssentialHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace SSMContacts
74} // namespace Aws
ContactTargetInfo & WithContactId(ContactIdT &&value)
AWS_SSMCONTACTS_API ContactTargetInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSMCONTACTS_API ContactTargetInfo()=default
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