AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetSummary.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codestar-notifications/model/TargetStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeStarNotifications
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODESTARNOTIFICATIONS_API TargetSummary();
37 AWS_CODESTARNOTIFICATIONS_API TargetSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODESTARNOTIFICATIONS_API TargetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTargetAddress() const{ return m_targetAddress; }
47 inline bool TargetAddressHasBeenSet() const { return m_targetAddressHasBeenSet; }
48 inline void SetTargetAddress(const Aws::String& value) { m_targetAddressHasBeenSet = true; m_targetAddress = value; }
49 inline void SetTargetAddress(Aws::String&& value) { m_targetAddressHasBeenSet = true; m_targetAddress = std::move(value); }
50 inline void SetTargetAddress(const char* value) { m_targetAddressHasBeenSet = true; m_targetAddress.assign(value); }
51 inline TargetSummary& WithTargetAddress(const Aws::String& value) { SetTargetAddress(value); return *this;}
52 inline TargetSummary& WithTargetAddress(Aws::String&& value) { SetTargetAddress(std::move(value)); return *this;}
53 inline TargetSummary& WithTargetAddress(const char* value) { SetTargetAddress(value); return *this;}
55
57
62 inline const Aws::String& GetTargetType() const{ return m_targetType; }
63 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
64 inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
65 inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
66 inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
67 inline TargetSummary& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
68 inline TargetSummary& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
69 inline TargetSummary& WithTargetType(const char* value) { SetTargetType(value); return *this;}
71
73
76 inline const TargetStatus& GetTargetStatus() const{ return m_targetStatus; }
77 inline bool TargetStatusHasBeenSet() const { return m_targetStatusHasBeenSet; }
78 inline void SetTargetStatus(const TargetStatus& value) { m_targetStatusHasBeenSet = true; m_targetStatus = value; }
79 inline void SetTargetStatus(TargetStatus&& value) { m_targetStatusHasBeenSet = true; m_targetStatus = std::move(value); }
80 inline TargetSummary& WithTargetStatus(const TargetStatus& value) { SetTargetStatus(value); return *this;}
81 inline TargetSummary& WithTargetStatus(TargetStatus&& value) { SetTargetStatus(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_targetAddress;
86 bool m_targetAddressHasBeenSet = false;
87
88 Aws::String m_targetType;
89 bool m_targetTypeHasBeenSet = false;
90
91 TargetStatus m_targetStatus;
92 bool m_targetStatusHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeStarNotifications
97} // namespace Aws
TargetSummary & WithTargetAddress(const char *value)
TargetSummary & WithTargetType(const char *value)
TargetSummary & WithTargetStatus(TargetStatus &&value)
TargetSummary & WithTargetType(Aws::String &&value)
AWS_CODESTARNOTIFICATIONS_API TargetSummary()
AWS_CODESTARNOTIFICATIONS_API TargetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetSummary & WithTargetType(const Aws::String &value)
AWS_CODESTARNOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
TargetSummary & WithTargetStatus(const TargetStatus &value)
void SetTargetStatus(const TargetStatus &value)
void SetTargetAddress(const Aws::String &value)
AWS_CODESTARNOTIFICATIONS_API TargetSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTargetType(const Aws::String &value)
TargetSummary & WithTargetAddress(Aws::String &&value)
TargetSummary & WithTargetAddress(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue