AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBackendStorageResourceConfig.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
35 {
36 public:
37 AWS_AMPLIFYBACKEND_API CreateBackendStorageResourceConfig();
40 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
48 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
49 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
50 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
51 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
52 inline CreateBackendStorageResourceConfig& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
53 inline CreateBackendStorageResourceConfig& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
54 inline CreateBackendStorageResourceConfig& WithBucketName(const char* value) { SetBucketName(value); return *this;}
56
58
61 inline const BackendStoragePermissions& GetPermissions() const{ return m_permissions; }
62 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
63 inline void SetPermissions(const BackendStoragePermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
64 inline void SetPermissions(BackendStoragePermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
68
70
73 inline const ServiceName& GetServiceName() const{ return m_serviceName; }
74 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
75 inline void SetServiceName(const ServiceName& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
76 inline void SetServiceName(ServiceName&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
78 inline CreateBackendStorageResourceConfig& WithServiceName(ServiceName&& value) { SetServiceName(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_bucketName;
83 bool m_bucketNameHasBeenSet = false;
84
85 BackendStoragePermissions m_permissions;
86 bool m_permissionsHasBeenSet = false;
87
88 ServiceName m_serviceName;
89 bool m_serviceNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AmplifyBackend
94} // namespace Aws
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
CreateBackendStorageResourceConfig & WithPermissions(const BackendStoragePermissions &value)
CreateBackendStorageResourceConfig & WithBucketName(Aws::String &&value)
CreateBackendStorageResourceConfig & WithServiceName(ServiceName &&value)
AWS_AMPLIFYBACKEND_API CreateBackendStorageResourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API CreateBackendStorageResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateBackendStorageResourceConfig & WithServiceName(const ServiceName &value)
CreateBackendStorageResourceConfig & WithBucketName(const char *value)
CreateBackendStorageResourceConfig & WithPermissions(BackendStoragePermissions &&value)
CreateBackendStorageResourceConfig & WithBucketName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue