AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResourcePathComponent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WorkDocs {
20namespace Model {
21
28 public:
29 AWS_WORKDOCS_API ResourcePathComponent() = default;
32 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_id;
71
72 Aws::String m_name;
73 bool m_idHasBeenSet = false;
74 bool m_nameHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace WorkDocs
79} // namespace Aws
AWS_WORKDOCS_API ResourcePathComponent(Aws::Utils::Json::JsonView jsonValue)
ResourcePathComponent & WithId(IdT &&value)
ResourcePathComponent & WithName(NameT &&value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKDOCS_API ResourcePathComponent()=default
AWS_WORKDOCS_API ResourcePathComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue