AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResourcePath.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/workdocs/WorkDocs_EXPORTS.h>
9#include <aws/workdocs/model/ResourcePathComponent.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WorkDocs {
21namespace Model {
22
29 public:
30 AWS_WORKDOCS_API ResourcePath() = default;
31 AWS_WORKDOCS_API ResourcePath(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<ResourcePathComponent>& GetComponents() const { return m_components; }
40 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
41 template <typename ComponentsT = Aws::Vector<ResourcePathComponent>>
42 void SetComponents(ComponentsT&& value) {
43 m_componentsHasBeenSet = true;
44 m_components = std::forward<ComponentsT>(value);
45 }
46 template <typename ComponentsT = Aws::Vector<ResourcePathComponent>>
47 ResourcePath& WithComponents(ComponentsT&& value) {
48 SetComponents(std::forward<ComponentsT>(value));
49 return *this;
50 }
51 template <typename ComponentsT = ResourcePathComponent>
52 ResourcePath& AddComponents(ComponentsT&& value) {
53 m_componentsHasBeenSet = true;
54 m_components.emplace_back(std::forward<ComponentsT>(value));
55 return *this;
56 }
58 private:
60 bool m_componentsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace WorkDocs
65} // namespace Aws
AWS_WORKDOCS_API ResourcePath()=default
ResourcePath & WithComponents(ComponentsT &&value)
const Aws::Vector< ResourcePathComponent > & GetComponents() const
AWS_WORKDOCS_API ResourcePath(Aws::Utils::Json::JsonView jsonValue)
ResourcePath & AddComponents(ComponentsT &&value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKDOCS_API ResourcePath & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComponents(ComponentsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue