AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TargetTypeT = Aws::String>
50 void SetTargetType(TargetTypeT&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::forward<TargetTypeT>(value); }
51 template<typename TargetTypeT = Aws::String>
52 Target& WithTargetType(TargetTypeT&& value) { SetTargetType(std::forward<TargetTypeT>(value)); return *this;}
54
56
59 inline const Aws::String& GetTargetAddress() const { return m_targetAddress; }
60 inline bool TargetAddressHasBeenSet() const { return m_targetAddressHasBeenSet; }
61 template<typename TargetAddressT = Aws::String>
62 void SetTargetAddress(TargetAddressT&& value) { m_targetAddressHasBeenSet = true; m_targetAddress = std::forward<TargetAddressT>(value); }
63 template<typename TargetAddressT = Aws::String>
64 Target& WithTargetAddress(TargetAddressT&& value) { SetTargetAddress(std::forward<TargetAddressT>(value)); return *this;}
66 private:
67
68 Aws::String m_targetType;
69 bool m_targetTypeHasBeenSet = false;
70
71 Aws::String m_targetAddress;
72 bool m_targetAddressHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CodeStarNotifications
77} // namespace Aws
const Aws::String & GetTargetAddress() const
Definition Target.h:59
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:64
AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetType(TargetTypeT &&value)
Definition Target.h:50
const Aws::String & GetTargetType() const
Definition Target.h:47
void SetTargetAddress(TargetAddressT &&value)
Definition Target.h:62
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