AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/ssm-contacts/model/ChannelTargetInfo.h>
9#include <aws/ssm-contacts/model/ContactTargetInfo.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 Target
34 {
35 public:
36 AWS_SSMCONTACTS_API Target();
37 AWS_SSMCONTACTS_API Target(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMCONTACTS_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ChannelTargetInfo& GetChannelTargetInfo() const{ return m_channelTargetInfo; }
47 inline bool ChannelTargetInfoHasBeenSet() const { return m_channelTargetInfoHasBeenSet; }
48 inline void SetChannelTargetInfo(const ChannelTargetInfo& value) { m_channelTargetInfoHasBeenSet = true; m_channelTargetInfo = value; }
49 inline void SetChannelTargetInfo(ChannelTargetInfo&& value) { m_channelTargetInfoHasBeenSet = true; m_channelTargetInfo = std::move(value); }
50 inline Target& WithChannelTargetInfo(const ChannelTargetInfo& value) { SetChannelTargetInfo(value); return *this;}
51 inline Target& WithChannelTargetInfo(ChannelTargetInfo&& value) { SetChannelTargetInfo(std::move(value)); return *this;}
53
55
58 inline const ContactTargetInfo& GetContactTargetInfo() const{ return m_contactTargetInfo; }
59 inline bool ContactTargetInfoHasBeenSet() const { return m_contactTargetInfoHasBeenSet; }
60 inline void SetContactTargetInfo(const ContactTargetInfo& value) { m_contactTargetInfoHasBeenSet = true; m_contactTargetInfo = value; }
61 inline void SetContactTargetInfo(ContactTargetInfo&& value) { m_contactTargetInfoHasBeenSet = true; m_contactTargetInfo = std::move(value); }
62 inline Target& WithContactTargetInfo(const ContactTargetInfo& value) { SetContactTargetInfo(value); return *this;}
63 inline Target& WithContactTargetInfo(ContactTargetInfo&& value) { SetContactTargetInfo(std::move(value)); return *this;}
65 private:
66
67 ChannelTargetInfo m_channelTargetInfo;
68 bool m_channelTargetInfoHasBeenSet = false;
69
70 ContactTargetInfo m_contactTargetInfo;
71 bool m_contactTargetInfoHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SSMContacts
76} // namespace Aws
const ChannelTargetInfo & GetChannelTargetInfo() const
Definition Target.h:46
Target & WithChannelTargetInfo(ChannelTargetInfo &&value)
Definition Target.h:51
void SetChannelTargetInfo(const ChannelTargetInfo &value)
Definition Target.h:48
Target & WithChannelTargetInfo(const ChannelTargetInfo &value)
Definition Target.h:50
void SetChannelTargetInfo(ChannelTargetInfo &&value)
Definition Target.h:49
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
const ContactTargetInfo & GetContactTargetInfo() const
Definition Target.h:58
AWS_SSMCONTACTS_API Target()
Target & WithContactTargetInfo(const ContactTargetInfo &value)
Definition Target.h:62
bool ChannelTargetInfoHasBeenSet() const
Definition Target.h:47
Target & WithContactTargetInfo(ContactTargetInfo &&value)
Definition Target.h:63
bool ContactTargetInfoHasBeenSet() const
Definition Target.h:59
AWS_SSMCONTACTS_API Target(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMCONTACTS_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContactTargetInfo(ContactTargetInfo &&value)
Definition Target.h:61
void SetContactTargetInfo(const ContactTargetInfo &value)
Definition Target.h:60
Aws::Utils::Json::JsonValue JsonValue