AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
FileShareInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGateway_EXPORTS.h>
9#include <aws/storagegateway/model/FileShareType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace StorageGateway {
21namespace Model {
22
30 public:
31 AWS_STORAGEGATEWAY_API FileShareInfo() = default;
32 AWS_STORAGEGATEWAY_API FileShareInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_STORAGEGATEWAY_API FileShareInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline FileShareType GetFileShareType() const { return m_fileShareType; }
39 inline bool FileShareTypeHasBeenSet() const { return m_fileShareTypeHasBeenSet; }
40 inline void SetFileShareType(FileShareType value) {
41 m_fileShareTypeHasBeenSet = true;
42 m_fileShareType = value;
43 }
45 SetFileShareType(value);
46 return *this;
47 }
49
51
52 inline const Aws::String& GetFileShareARN() const { return m_fileShareARN; }
53 inline bool FileShareARNHasBeenSet() const { return m_fileShareARNHasBeenSet; }
54 template <typename FileShareARNT = Aws::String>
55 void SetFileShareARN(FileShareARNT&& value) {
56 m_fileShareARNHasBeenSet = true;
57 m_fileShareARN = std::forward<FileShareARNT>(value);
58 }
59 template <typename FileShareARNT = Aws::String>
60 FileShareInfo& WithFileShareARN(FileShareARNT&& value) {
61 SetFileShareARN(std::forward<FileShareARNT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetFileShareId() const { return m_fileShareId; }
69 inline bool FileShareIdHasBeenSet() const { return m_fileShareIdHasBeenSet; }
70 template <typename FileShareIdT = Aws::String>
71 void SetFileShareId(FileShareIdT&& value) {
72 m_fileShareIdHasBeenSet = true;
73 m_fileShareId = std::forward<FileShareIdT>(value);
74 }
75 template <typename FileShareIdT = Aws::String>
76 FileShareInfo& WithFileShareId(FileShareIdT&& value) {
77 SetFileShareId(std::forward<FileShareIdT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetFileShareStatus() const { return m_fileShareStatus; }
85 inline bool FileShareStatusHasBeenSet() const { return m_fileShareStatusHasBeenSet; }
86 template <typename FileShareStatusT = Aws::String>
87 void SetFileShareStatus(FileShareStatusT&& value) {
88 m_fileShareStatusHasBeenSet = true;
89 m_fileShareStatus = std::forward<FileShareStatusT>(value);
90 }
91 template <typename FileShareStatusT = Aws::String>
92 FileShareInfo& WithFileShareStatus(FileShareStatusT&& value) {
93 SetFileShareStatus(std::forward<FileShareStatusT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
101 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
102 template <typename GatewayARNT = Aws::String>
103 void SetGatewayARN(GatewayARNT&& value) {
104 m_gatewayARNHasBeenSet = true;
105 m_gatewayARN = std::forward<GatewayARNT>(value);
106 }
107 template <typename GatewayARNT = Aws::String>
108 FileShareInfo& WithGatewayARN(GatewayARNT&& value) {
109 SetGatewayARN(std::forward<GatewayARNT>(value));
110 return *this;
111 }
113 private:
114 FileShareType m_fileShareType{FileShareType::NOT_SET};
115
116 Aws::String m_fileShareARN;
117
118 Aws::String m_fileShareId;
119
120 Aws::String m_fileShareStatus;
121
122 Aws::String m_gatewayARN;
123 bool m_fileShareTypeHasBeenSet = false;
124 bool m_fileShareARNHasBeenSet = false;
125 bool m_fileShareIdHasBeenSet = false;
126 bool m_fileShareStatusHasBeenSet = false;
127 bool m_gatewayARNHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace StorageGateway
132} // namespace Aws
AWS_STORAGEGATEWAY_API FileShareInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGatewayARN() const
const Aws::String & GetFileShareStatus() const
FileShareInfo & WithFileShareARN(FileShareARNT &&value)
void SetFileShareStatus(FileShareStatusT &&value)
FileShareInfo & WithFileShareType(FileShareType value)
AWS_STORAGEGATEWAY_API FileShareInfo()=default
AWS_STORAGEGATEWAY_API FileShareInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
FileShareInfo & WithFileShareStatus(FileShareStatusT &&value)
void SetFileShareARN(FileShareARNT &&value)
FileShareInfo & WithFileShareId(FileShareIdT &&value)
void SetFileShareId(FileShareIdT &&value)
const Aws::String & GetFileShareId() const
FileShareInfo & WithGatewayARN(GatewayARNT &&value)
const Aws::String & GetFileShareARN() const
void SetFileShareType(FileShareType value)
void SetGatewayARN(GatewayARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue