AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TargetResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
9#include <aws/networkflowmonitor/model/TargetIdentifier.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkFlowMonitor {
21namespace Model {
22
32 public:
33 AWS_NETWORKFLOWMONITOR_API TargetResource() = default;
34 AWS_NETWORKFLOWMONITOR_API TargetResource(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKFLOWMONITOR_API TargetResource& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const TargetIdentifier& GetTargetIdentifier() const { return m_targetIdentifier; }
45 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
46 template <typename TargetIdentifierT = TargetIdentifier>
47 void SetTargetIdentifier(TargetIdentifierT&& value) {
48 m_targetIdentifierHasBeenSet = true;
49 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
50 }
51 template <typename TargetIdentifierT = TargetIdentifier>
52 TargetResource& WithTargetIdentifier(TargetIdentifierT&& value) {
53 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetRegion() const { return m_region; }
63 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
64 template <typename RegionT = Aws::String>
65 void SetRegion(RegionT&& value) {
66 m_regionHasBeenSet = true;
67 m_region = std::forward<RegionT>(value);
68 }
69 template <typename RegionT = Aws::String>
70 TargetResource& WithRegion(RegionT&& value) {
71 SetRegion(std::forward<RegionT>(value));
72 return *this;
73 }
75 private:
76 TargetIdentifier m_targetIdentifier;
77
78 Aws::String m_region;
79 bool m_targetIdentifierHasBeenSet = false;
80 bool m_regionHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace NetworkFlowMonitor
85} // namespace Aws
AWS_NETWORKFLOWMONITOR_API TargetResource(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFLOWMONITOR_API TargetResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFLOWMONITOR_API TargetResource()=default
TargetResource & WithRegion(RegionT &&value)
const TargetIdentifier & GetTargetIdentifier() const
void SetTargetIdentifier(TargetIdentifierT &&value)
TargetResource & WithTargetIdentifier(TargetIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue