AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeStarNotifications {
20namespace Model {
21
29class Target {
30 public:
31 AWS_CODESTARNOTIFICATIONS_API Target() = default;
32 AWS_CODESTARNOTIFICATIONS_API Target(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODESTARNOTIFICATIONS_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetTargetType() const { return m_targetType; }
45 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
46 template <typename TargetTypeT = Aws::String>
47 void SetTargetType(TargetTypeT&& value) {
48 m_targetTypeHasBeenSet = true;
49 m_targetType = std::forward<TargetTypeT>(value);
50 }
51 template <typename TargetTypeT = Aws::String>
52 Target& WithTargetType(TargetTypeT&& value) {
53 SetTargetType(std::forward<TargetTypeT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetTargetAddress() const { return m_targetAddress; }
64 inline bool TargetAddressHasBeenSet() const { return m_targetAddressHasBeenSet; }
65 template <typename TargetAddressT = Aws::String>
66 void SetTargetAddress(TargetAddressT&& value) {
67 m_targetAddressHasBeenSet = true;
68 m_targetAddress = std::forward<TargetAddressT>(value);
69 }
70 template <typename TargetAddressT = Aws::String>
71 Target& WithTargetAddress(TargetAddressT&& value) {
72 SetTargetAddress(std::forward<TargetAddressT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_targetType;
78
79 Aws::String m_targetAddress;
80 bool m_targetTypeHasBeenSet = false;
81 bool m_targetAddressHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CodeStarNotifications
86} // namespace Aws
const Aws::String & GetTargetAddress() const
Definition Target.h:63
AWS_CODESTARNOTIFICATIONS_API Target()=default
Target & WithTargetType(TargetTypeT &&value)
Definition Target.h:52
AWS_CODESTARNOTIFICATIONS_API Target(Aws::Utils::Json::JsonView jsonValue)
Target & WithTargetAddress(TargetAddressT &&value)
Definition Target.h:71
AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetType(TargetTypeT &&value)
Definition Target.h:47
const Aws::String & GetTargetType() const
Definition Target.h:44
void SetTargetAddress(TargetAddressT &&value)
Definition Target.h:66
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