AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
FileSystemCapability.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/cloudextensions/model/AccessModeType.h>
9#include <aws/cloudextensions/model/CreateModeType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudExtensions {
23namespace Model {
24
32 public:
33 AWS_CLOUDEXTENSIONS_API FileSystemCapability() = default;
34 AWS_CLOUDEXTENSIONS_API FileSystemCapability(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDEXTENSIONS_API FileSystemCapability& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetDirectory() const { return m_directory; }
44 inline bool DirectoryHasBeenSet() const { return m_directoryHasBeenSet; }
45 template <typename DirectoryT = Aws::String>
46 void SetDirectory(DirectoryT&& value) {
47 m_directoryHasBeenSet = true;
48 m_directory = std::forward<DirectoryT>(value);
49 }
50 template <typename DirectoryT = Aws::String>
51 FileSystemCapability& WithDirectory(DirectoryT&& value) {
52 SetDirectory(std::forward<DirectoryT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Aws::String>& GetPaths() const { return m_paths; }
63 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
64 template <typename PathsT = Aws::Vector<Aws::String>>
65 void SetPaths(PathsT&& value) {
66 m_pathsHasBeenSet = true;
67 m_paths = std::forward<PathsT>(value);
68 }
69 template <typename PathsT = Aws::Vector<Aws::String>>
71 SetPaths(std::forward<PathsT>(value));
72 return *this;
73 }
74 template <typename PathsT = Aws::String>
75 FileSystemCapability& AddPaths(PathsT&& value) {
76 m_pathsHasBeenSet = true;
77 m_paths.emplace_back(std::forward<PathsT>(value));
78 return *this;
79 }
81
83
86 inline AccessModeType GetAccessMode() const { return m_accessMode; }
87 inline bool AccessModeHasBeenSet() const { return m_accessModeHasBeenSet; }
88 inline void SetAccessMode(AccessModeType value) {
89 m_accessModeHasBeenSet = true;
90 m_accessMode = value;
91 }
93 SetAccessMode(value);
94 return *this;
95 }
97
99
103 inline CreateModeType GetCreateMode() const { return m_createMode; }
104 inline bool CreateModeHasBeenSet() const { return m_createModeHasBeenSet; }
105 inline void SetCreateMode(CreateModeType value) {
106 m_createModeHasBeenSet = true;
107 m_createMode = value;
108 }
110 SetCreateMode(value);
111 return *this;
112 }
114 private:
115 Aws::String m_directory;
116
118
120
122 bool m_directoryHasBeenSet = false;
123 bool m_pathsHasBeenSet = false;
124 bool m_accessModeHasBeenSet = false;
125 bool m_createModeHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace CloudExtensions
130} // namespace Aws
const Aws::Vector< Aws::String > & GetPaths() const
AWS_CLOUDEXTENSIONS_API FileSystemCapability(Aws::Utils::Json::JsonView jsonValue)
FileSystemCapability & WithPaths(PathsT &&value)
AWS_CLOUDEXTENSIONS_API FileSystemCapability()=default
FileSystemCapability & WithAccessMode(AccessModeType value)
FileSystemCapability & WithCreateMode(CreateModeType value)
FileSystemCapability & WithDirectory(DirectoryT &&value)
FileSystemCapability & AddPaths(PathsT &&value)
AWS_CLOUDEXTENSIONS_API FileSystemCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue