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/codestar-notifications/CodeStarNotifications_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 CodeStarNotifications
22{
23namespace Model
24{
25
32 class Target
33 {
34 public:
35 AWS_CODESTARNOTIFICATIONS_API Target();
36 AWS_CODESTARNOTIFICATIONS_API Target(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODESTARNOTIFICATIONS_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetTargetType() const{ return m_targetType; }
48 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
49 inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
50 inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
51 inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
52 inline Target& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
53 inline Target& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
54 inline Target& WithTargetType(const char* value) { SetTargetType(value); return *this;}
56
58
61 inline const Aws::String& GetTargetAddress() const{ return m_targetAddress; }
62 inline bool TargetAddressHasBeenSet() const { return m_targetAddressHasBeenSet; }
63 inline void SetTargetAddress(const Aws::String& value) { m_targetAddressHasBeenSet = true; m_targetAddress = value; }
64 inline void SetTargetAddress(Aws::String&& value) { m_targetAddressHasBeenSet = true; m_targetAddress = std::move(value); }
65 inline void SetTargetAddress(const char* value) { m_targetAddressHasBeenSet = true; m_targetAddress.assign(value); }
66 inline Target& WithTargetAddress(const Aws::String& value) { SetTargetAddress(value); return *this;}
67 inline Target& WithTargetAddress(Aws::String&& value) { SetTargetAddress(std::move(value)); return *this;}
68 inline Target& WithTargetAddress(const char* value) { SetTargetAddress(value); return *this;}
70 private:
71
72 Aws::String m_targetType;
73 bool m_targetTypeHasBeenSet = false;
74
75 Aws::String m_targetAddress;
76 bool m_targetAddressHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CodeStarNotifications
81} // namespace Aws
const Aws::String & GetTargetAddress() const
Definition Target.h:61
AWS_CODESTARNOTIFICATIONS_API Target()
void SetTargetAddress(Aws::String &&value)
Definition Target.h:64
void SetTargetType(const Aws::String &value)
Definition Target.h:49
void SetTargetAddress(const char *value)
Definition Target.h:65
Target & WithTargetAddress(const Aws::String &value)
Definition Target.h:66
void SetTargetType(Aws::String &&value)
Definition Target.h:50
Target & WithTargetAddress(const char *value)
Definition Target.h:68
Target & WithTargetType(const char *value)
Definition Target.h:54
AWS_CODESTARNOTIFICATIONS_API Target(Aws::Utils::Json::JsonView jsonValue)
void SetTargetAddress(const Aws::String &value)
Definition Target.h:63
AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Target & WithTargetType(const Aws::String &value)
Definition Target.h:52
Target & WithTargetType(Aws::String &&value)
Definition Target.h:53
Target & WithTargetAddress(Aws::String &&value)
Definition Target.h:67
void SetTargetType(const char *value)
Definition Target.h:51
const Aws::String & GetTargetType() const
Definition Target.h:47
AWS_CODESTARNOTIFICATIONS_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue