AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
49 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
50 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
51 inline GetBackendStorageResourceConfig& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
52 inline GetBackendStorageResourceConfig& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
53 inline GetBackendStorageResourceConfig& WithBucketName(const char* value) { SetBucketName(value); return *this;}
55
57
60 inline bool GetImported() const{ return m_imported; }
61 inline bool ImportedHasBeenSet() const { return m_importedHasBeenSet; }
62 inline void SetImported(bool value) { m_importedHasBeenSet = true; m_imported = value; }
63 inline GetBackendStorageResourceConfig& WithImported(bool value) { SetImported(value); return *this;}
65
67
70 inline const BackendStoragePermissions& GetPermissions() const{ return m_permissions; }
71 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
72 inline void SetPermissions(const BackendStoragePermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
73 inline void SetPermissions(BackendStoragePermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
77
79
82 inline const ServiceName& GetServiceName() const{ return m_serviceName; }
83 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
84 inline void SetServiceName(const ServiceName& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
85 inline void SetServiceName(ServiceName&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
86 inline GetBackendStorageResourceConfig& WithServiceName(const ServiceName& value) { SetServiceName(value); return *this;}
87 inline GetBackendStorageResourceConfig& WithServiceName(ServiceName&& value) { SetServiceName(std::move(value)); return *this;}
89 private:
90
91 Aws::String m_bucketName;
92 bool m_bucketNameHasBeenSet = false;
93
94 bool m_imported;
95 bool m_importedHasBeenSet = false;
96
97 BackendStoragePermissions m_permissions;
98 bool m_permissionsHasBeenSet = false;
99
100 ServiceName m_serviceName;
101 bool m_serviceNameHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace AmplifyBackend
106} // namespace Aws
GetBackendStorageResourceConfig & WithBucketName(const char *value)
GetBackendStorageResourceConfig & WithServiceName(ServiceName &&value)
GetBackendStorageResourceConfig & WithPermissions(const BackendStoragePermissions &value)
GetBackendStorageResourceConfig & WithBucketName(Aws::String &&value)
AWS_AMPLIFYBACKEND_API GetBackendStorageResourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API GetBackendStorageResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GetBackendStorageResourceConfig & WithBucketName(const Aws::String &value)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
GetBackendStorageResourceConfig & WithServiceName(const ServiceName &value)
GetBackendStorageResourceConfig & WithPermissions(BackendStoragePermissions &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue