AWS SDK for C++

AWS SDK for C++ Version 1.11.929

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
46 inline const Aws::String& GetTargetType() const { return m_targetType; }
47 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
48 template <typename TargetTypeT = Aws::String>
49 void SetTargetType(TargetTypeT&& value) {
50 m_targetTypeHasBeenSet = true;
51 m_targetType = std::forward<TargetTypeT>(value);
52 }
53 template <typename TargetTypeT = Aws::String>
54 Target& WithTargetType(TargetTypeT&& value) {
55 SetTargetType(std::forward<TargetTypeT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetTargetAddress() const { return m_targetAddress; }
66 inline bool TargetAddressHasBeenSet() const { return m_targetAddressHasBeenSet; }
67 template <typename TargetAddressT = Aws::String>
68 void SetTargetAddress(TargetAddressT&& value) {
69 m_targetAddressHasBeenSet = true;
70 m_targetAddress = std::forward<TargetAddressT>(value);
71 }
72 template <typename TargetAddressT = Aws::String>
73 Target& WithTargetAddress(TargetAddressT&& value) {
74 SetTargetAddress(std::forward<TargetAddressT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_targetType;
80
81 Aws::String m_targetAddress;
82 bool m_targetTypeHasBeenSet = false;
83 bool m_targetAddressHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CodeStarNotifications
88} // namespace Aws
const Aws::String & GetTargetAddress() const
Definition Target.h:65
AWS_CODESTARNOTIFICATIONS_API Target()=default
Target & WithTargetType(TargetTypeT &&value)
Definition Target.h:54
AWS_CODESTARNOTIFICATIONS_API Target(Aws::Utils::Json::JsonView jsonValue)
Target & WithTargetAddress(TargetAddressT &&value)
Definition Target.h:73
AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetType(TargetTypeT &&value)
Definition Target.h:49
const Aws::String & GetTargetType() const
Definition Target.h:46
void SetTargetAddress(TargetAddressT &&value)
Definition Target.h:68
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