AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourcePath.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workdocs/model/ResourcePathComponent.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkDocs
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_WORKDOCS_API ResourcePath() = default;
36 AWS_WORKDOCS_API ResourcePath(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<ResourcePathComponent>& GetComponents() const { return m_components; }
46 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
47 template<typename ComponentsT = Aws::Vector<ResourcePathComponent>>
48 void SetComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components = std::forward<ComponentsT>(value); }
49 template<typename ComponentsT = Aws::Vector<ResourcePathComponent>>
50 ResourcePath& WithComponents(ComponentsT&& value) { SetComponents(std::forward<ComponentsT>(value)); return *this;}
51 template<typename ComponentsT = ResourcePathComponent>
52 ResourcePath& AddComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components.emplace_back(std::forward<ComponentsT>(value)); return *this; }
54 private:
55
57 bool m_componentsHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace WorkDocs
62} // 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