AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
FileReference.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AmplifyGen3 {
20namespace Model {
21
28 public:
29 AWS_AMPLIFYGEN3_API FileReference() = default;
30 AWS_AMPLIFYGEN3_API FileReference(Aws::Utils::Json::JsonView jsonValue);
31 AWS_AMPLIFYGEN3_API FileReference& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAbsolutePath() const { return m_absolutePath; }
39 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
40 template <typename AbsolutePathT = Aws::String>
41 void SetAbsolutePath(AbsolutePathT&& value) {
42 m_absolutePathHasBeenSet = true;
43 m_absolutePath = std::forward<AbsolutePathT>(value);
44 }
45 template <typename AbsolutePathT = Aws::String>
46 FileReference& WithAbsolutePath(AbsolutePathT&& value) {
47 SetAbsolutePath(std::forward<AbsolutePathT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRelativePath() const { return m_relativePath; }
57 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
58 template <typename RelativePathT = Aws::String>
59 void SetRelativePath(RelativePathT&& value) {
60 m_relativePathHasBeenSet = true;
61 m_relativePath = std::forward<RelativePathT>(value);
62 }
63 template <typename RelativePathT = Aws::String>
64 FileReference& WithRelativePath(RelativePathT&& value) {
65 SetRelativePath(std::forward<RelativePathT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_absolutePath;
71
72 Aws::String m_relativePath;
73 bool m_absolutePathHasBeenSet = false;
74 bool m_relativePathHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace AmplifyGen3
79} // namespace Aws
void SetAbsolutePath(AbsolutePathT &&value)
AWS_AMPLIFYGEN3_API FileReference()=default
AWS_AMPLIFYGEN3_API FileReference(Aws::Utils::Json::JsonView jsonValue)
FileReference & WithAbsolutePath(AbsolutePathT &&value)
AWS_AMPLIFYGEN3_API FileReference & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRelativePath() const
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRelativePath(RelativePathT &&value)
const Aws::String & GetAbsolutePath() const
FileReference & WithRelativePath(RelativePathT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue