AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
AsPathSegment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/directconnect/DirectConnect_EXPORTS.h>
9#include <aws/directconnect/model/AsPathType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DirectConnect {
21namespace Model {
22
29 public:
30 AWS_DIRECTCONNECT_API AsPathSegment() = default;
31 AWS_DIRECTCONNECT_API AsPathSegment(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DIRECTCONNECT_API AsPathSegment& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline AsPathType GetPathType() const { return m_pathType; }
42 inline bool PathTypeHasBeenSet() const { return m_pathTypeHasBeenSet; }
43 inline void SetPathType(AsPathType value) {
44 m_pathTypeHasBeenSet = true;
45 m_pathType = value;
46 }
48 SetPathType(value);
49 return *this;
50 }
52
54
57 inline const Aws::Vector<long long>& GetPath() const { return m_path; }
58 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
59 template <typename PathT = Aws::Vector<long long>>
60 void SetPath(PathT&& value) {
61 m_pathHasBeenSet = true;
62 m_path = std::forward<PathT>(value);
63 }
64 template <typename PathT = Aws::Vector<long long>>
65 AsPathSegment& WithPath(PathT&& value) {
66 SetPath(std::forward<PathT>(value));
67 return *this;
68 }
69 inline AsPathSegment& AddPath(long long value) {
70 m_pathHasBeenSet = true;
71 m_path.push_back(value);
72 return *this;
73 }
75 private:
77
79 bool m_pathTypeHasBeenSet = false;
80 bool m_pathHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace DirectConnect
85} // namespace Aws
AsPathSegment & WithPath(PathT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DIRECTCONNECT_API AsPathSegment(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API AsPathSegment()=default
AWS_DIRECTCONNECT_API AsPathSegment & operator=(Aws::Utils::Json::JsonView jsonValue)
AsPathSegment & AddPath(long long value)
const Aws::Vector< long long > & GetPath() const
AsPathSegment & WithPathType(AsPathType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue