AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NetworkPath.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/Step.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API NetworkPath() = default;
32 AWS_INSPECTOR2_API NetworkPath(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API NetworkPath& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Step>& GetSteps() const { return m_steps; }
41 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
42 template <typename StepsT = Aws::Vector<Step>>
43 void SetSteps(StepsT&& value) {
44 m_stepsHasBeenSet = true;
45 m_steps = std::forward<StepsT>(value);
46 }
47 template <typename StepsT = Aws::Vector<Step>>
48 NetworkPath& WithSteps(StepsT&& value) {
49 SetSteps(std::forward<StepsT>(value));
50 return *this;
51 }
52 template <typename StepsT = Step>
53 NetworkPath& AddSteps(StepsT&& value) {
54 m_stepsHasBeenSet = true;
55 m_steps.emplace_back(std::forward<StepsT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<Step> m_steps;
61 bool m_stepsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace Inspector2
66} // namespace Aws
NetworkPath & WithSteps(StepsT &&value)
Definition NetworkPath.h:48
AWS_INSPECTOR2_API NetworkPath(Aws::Utils::Json::JsonView jsonValue)
NetworkPath & AddSteps(StepsT &&value)
Definition NetworkPath.h:53
AWS_INSPECTOR2_API NetworkPath & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API NetworkPath()=default
const Aws::Vector< Step > & GetSteps() const
Definition NetworkPath.h:40
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue