/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/amplifybackend/AmplifyBackend_EXPORTS.h> #include <aws/amplifybackend/AmplifyBackendRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/amplifybackend/model/ServiceName.h> #include <utility> namespace Aws { namespace AmplifyBackend { namespace Model { /** * <p>The request body for ImportBackendStorage.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendStorageRequest">AWS * API Reference</a></p> */ class ImportBackendStorageRequest : public AmplifyBackendRequest { public: AWS_AMPLIFYBACKEND_API ImportBackendStorageRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ImportBackendStorage"; } AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override; /** * <p>The app ID.</p> */ inline const Aws::String& GetAppId() const{ return m_appId; } /** * <p>The app ID.</p> */ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** * <p>The app ID.</p> */ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** * <p>The app ID.</p> */ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** * <p>The app ID.</p> */ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** * <p>The app ID.</p> */ inline ImportBackendStorageRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** * <p>The app ID.</p> */ inline ImportBackendStorageRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** * <p>The app ID.</p> */ inline ImportBackendStorageRequest& WithAppId(const char* value) { SetAppId(value); return *this;} /** * <p>The name of the backend environment.</p> */ inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; } /** * <p>The name of the backend environment.</p> */ inline bool BackendEnvironmentNameHasBeenSet() const { return m_backendEnvironmentNameHasBeenSet; } /** * <p>The name of the backend environment.</p> */ inline void SetBackendEnvironmentName(const Aws::String& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = value; } /** * <p>The name of the backend environment.</p> */ inline void SetBackendEnvironmentName(Aws::String&& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = std::move(value); } /** * <p>The name of the backend environment.</p> */ inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName.assign(value); } /** * <p>The name of the backend environment.</p> */ inline ImportBackendStorageRequest& WithBackendEnvironmentName(const Aws::String& value) { SetBackendEnvironmentName(value); return *this;} /** * <p>The name of the backend environment.</p> */ inline ImportBackendStorageRequest& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;} /** * <p>The name of the backend environment.</p> */ inline ImportBackendStorageRequest& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;} /** * <p>The name of the S3 bucket.</p> */ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** * <p>The name of the S3 bucket.</p> */ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** * <p>The name of the S3 bucket.</p> */ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** * <p>The name of the S3 bucket.</p> */ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** * <p>The name of the S3 bucket.</p> */ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** * <p>The name of the S3 bucket.</p> */ inline ImportBackendStorageRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** * <p>The name of the S3 bucket.</p> */ inline ImportBackendStorageRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** * <p>The name of the S3 bucket.</p> */ inline ImportBackendStorageRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** * <p>The name of the storage service.</p> */ inline const ServiceName& GetServiceName() const{ return m_serviceName; } /** * <p>The name of the storage service.</p> */ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** * <p>The name of the storage service.</p> */ inline void SetServiceName(const ServiceName& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** * <p>The name of the storage service.</p> */ inline void SetServiceName(ServiceName&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** * <p>The name of the storage service.</p> */ inline ImportBackendStorageRequest& WithServiceName(const ServiceName& value) { SetServiceName(value); return *this;} /** * <p>The name of the storage service.</p> */ inline ImportBackendStorageRequest& WithServiceName(ServiceName&& value) { SetServiceName(std::move(value)); return *this;} private: Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::String m_backendEnvironmentName; bool m_backendEnvironmentNameHasBeenSet = false; Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; ServiceName m_serviceName; bool m_serviceNameHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws