/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Mobile { namespace Model { /** *

Request structure used to request a project be created.

See * Also:

AWS * API Reference

*/ class CreateProjectRequest : public StreamingMobileRequest { public: AWS_MOBILE_API CreateProjectRequest(); // 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 "CreateProject"; } AWS_MOBILE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Name of the project.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Name of the project.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Name of the project.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Name of the project.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Name of the project.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Name of the project.

*/ inline CreateProjectRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Name of the project.

*/ inline CreateProjectRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Name of the project.

*/ inline CreateProjectRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Default region where project resources should be created.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

Default region where project resources should be created.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

Default region where project resources should be created.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

Default region where project resources should be created.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

Default region where project resources should be created.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

Default region where project resources should be created.

*/ inline CreateProjectRequest& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

Default region where project resources should be created.

*/ inline CreateProjectRequest& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

Default region where project resources should be created.

*/ inline CreateProjectRequest& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline CreateProjectRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline CreateProjectRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

Unique identifier for an exported snapshot of project configuration. This * snapshot identifier is included in the share URL when a project is exported. *

*/ inline CreateProjectRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; }; } // namespace Model } // namespace Mobile } // namespace Aws