AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetBackendStorageResourceConfig.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifybackend/model/BackendStoragePermissions.h>
10#include <aws/amplifybackend/model/ServiceName.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyBackend
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_AMPLIFYBACKEND_API GetBackendStorageResourceConfig() = default;
39 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBucketName() const { return m_bucketName; }
47 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 template<typename BucketNameT = Aws::String>
49 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
50 template<typename BucketNameT = Aws::String>
51 GetBackendStorageResourceConfig& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
53
55
58 inline bool GetImported() const { return m_imported; }
59 inline bool ImportedHasBeenSet() const { return m_importedHasBeenSet; }
60 inline void SetImported(bool value) { m_importedHasBeenSet = true; m_imported = value; }
61 inline GetBackendStorageResourceConfig& WithImported(bool value) { SetImported(value); return *this;}
63
65
68 inline const BackendStoragePermissions& GetPermissions() const { return m_permissions; }
69 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
70 template<typename PermissionsT = BackendStoragePermissions>
71 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
72 template<typename PermissionsT = BackendStoragePermissions>
73 GetBackendStorageResourceConfig& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
75
77
80 inline ServiceName GetServiceName() const { return m_serviceName; }
81 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
82 inline void SetServiceName(ServiceName value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
85 private:
86
87 Aws::String m_bucketName;
88 bool m_bucketNameHasBeenSet = false;
89
90 bool m_imported{false};
91 bool m_importedHasBeenSet = false;
92
93 BackendStoragePermissions m_permissions;
94 bool m_permissionsHasBeenSet = false;
95
96 ServiceName m_serviceName{ServiceName::NOT_SET};
97 bool m_serviceNameHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace AmplifyBackend
102} // namespace Aws
GetBackendStorageResourceConfig & WithBucketName(BucketNameT &&value)
AWS_AMPLIFYBACKEND_API GetBackendStorageResourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API GetBackendStorageResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GetBackendStorageResourceConfig & WithPermissions(PermissionsT &&value)
GetBackendStorageResourceConfig & WithServiceName(ServiceName value)
AWS_AMPLIFYBACKEND_API GetBackendStorageResourceConfig()=default
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue