AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TargetId.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkFlowMonitor {
20namespace Model {
21
30class TargetId {
31 public:
32 AWS_NETWORKFLOWMONITOR_API TargetId() = default;
33 AWS_NETWORKFLOWMONITOR_API TargetId(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKFLOWMONITOR_API TargetId& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 TargetId& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_accountId;
56 bool m_accountIdHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace NetworkFlowMonitor
61} // namespace Aws
AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccountId(AccountIdT &&value)
Definition TargetId.h:44
TargetId & WithAccountId(AccountIdT &&value)
Definition TargetId.h:49
AWS_NETWORKFLOWMONITOR_API TargetId(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFLOWMONITOR_API TargetId & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFLOWMONITOR_API TargetId()=default
const Aws::String & GetAccountId() const
Definition TargetId.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue