AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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
33 class Target
34 {
35 public:
36 AWS_CODESTARNOTIFICATIONS_API Target() = default;
37 AWS_CODESTARNOTIFICATIONS_API Target(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODESTARNOTIFICATIONS_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetTargetType() const { return m_targetType; }
51 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
52 template<typename TargetTypeT = Aws::String>
53 void SetTargetType(TargetTypeT&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::forward<TargetTypeT>(value); }
54 template<typename TargetTypeT = Aws::String>
55 Target& WithTargetType(TargetTypeT&& value) { SetTargetType(std::forward<TargetTypeT>(value)); return *this;}
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) { m_targetAddressHasBeenSet = true; m_targetAddress = std::forward<TargetAddressT>(value); }
67 template<typename TargetAddressT = Aws::String>
68 Target& WithTargetAddress(TargetAddressT&& value) { SetTargetAddress(std::forward<TargetAddressT>(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:63
AWS_CODESTARNOTIFICATIONS_API Target()=default
Target & WithTargetType(TargetTypeT &&value)
Definition Target.h:55
AWS_CODESTARNOTIFICATIONS_API Target(Aws::Utils::Json::JsonView jsonValue)
Target & WithTargetAddress(TargetAddressT &&value)
Definition Target.h:68
AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetType(TargetTypeT &&value)
Definition Target.h:53
const Aws::String & GetTargetType() const
Definition Target.h:50
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