/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Greengrass { namespace Model { /** */ class GetCoreDefinitionVersionRequest : public GreengrassRequest { public: AWS_GREENGRASS_API GetCoreDefinitionVersionRequest(); // 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 "GetCoreDefinitionVersion"; } AWS_GREENGRASS_API Aws::String SerializePayload() const override; /** * The ID of the core definition. */ inline const Aws::String& GetCoreDefinitionId() const{ return m_coreDefinitionId; } /** * The ID of the core definition. */ inline bool CoreDefinitionIdHasBeenSet() const { return m_coreDefinitionIdHasBeenSet; } /** * The ID of the core definition. */ inline void SetCoreDefinitionId(const Aws::String& value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId = value; } /** * The ID of the core definition. */ inline void SetCoreDefinitionId(Aws::String&& value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId = std::move(value); } /** * The ID of the core definition. */ inline void SetCoreDefinitionId(const char* value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId.assign(value); } /** * The ID of the core definition. */ inline GetCoreDefinitionVersionRequest& WithCoreDefinitionId(const Aws::String& value) { SetCoreDefinitionId(value); return *this;} /** * The ID of the core definition. */ inline GetCoreDefinitionVersionRequest& WithCoreDefinitionId(Aws::String&& value) { SetCoreDefinitionId(std::move(value)); return *this;} /** * The ID of the core definition. */ inline GetCoreDefinitionVersionRequest& WithCoreDefinitionId(const char* value) { SetCoreDefinitionId(value); return *this;} /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline const Aws::String& GetCoreDefinitionVersionId() const{ return m_coreDefinitionVersionId; } /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline bool CoreDefinitionVersionIdHasBeenSet() const { return m_coreDefinitionVersionIdHasBeenSet; } /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline void SetCoreDefinitionVersionId(const Aws::String& value) { m_coreDefinitionVersionIdHasBeenSet = true; m_coreDefinitionVersionId = value; } /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline void SetCoreDefinitionVersionId(Aws::String&& value) { m_coreDefinitionVersionIdHasBeenSet = true; m_coreDefinitionVersionId = std::move(value); } /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline void SetCoreDefinitionVersionId(const char* value) { m_coreDefinitionVersionIdHasBeenSet = true; m_coreDefinitionVersionId.assign(value); } /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline GetCoreDefinitionVersionRequest& WithCoreDefinitionVersionId(const Aws::String& value) { SetCoreDefinitionVersionId(value); return *this;} /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline GetCoreDefinitionVersionRequest& WithCoreDefinitionVersionId(Aws::String&& value) { SetCoreDefinitionVersionId(std::move(value)); return *this;} /** * The ID of the core definition version. This value maps to the ''Version'' * property of the corresponding ''VersionInformation'' object, which is returned * by ''ListCoreDefinitionVersions'' requests. If the version is the last one that * was associated with a core definition, the value also maps to the * ''LatestVersion'' property of the corresponding ''DefinitionInformation'' * object. */ inline GetCoreDefinitionVersionRequest& WithCoreDefinitionVersionId(const char* value) { SetCoreDefinitionVersionId(value); return *this;} private: Aws::String m_coreDefinitionId; bool m_coreDefinitionIdHasBeenSet = false; Aws::String m_coreDefinitionVersionId; bool m_coreDefinitionVersionIdHasBeenSet = false; }; } // namespace Model } // namespace Greengrass } // namespace Aws