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

Detailed data of an Proton service template version resource.

See * Also:

AWS * API Reference

*/ class ServiceTemplateVersion { public: AWS_PROTON_API ServiceTemplateVersion(); AWS_PROTON_API ServiceTemplateVersion(Aws::Utils::Json::JsonView jsonValue); AWS_PROTON_API ServiceTemplateVersion& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline ServiceTemplateVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline ServiceTemplateVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the version of a service template.

*/ inline ServiceTemplateVersion& WithArn(const char* value) { SetArn(value); return *this;} /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline const Aws::Vector& GetCompatibleEnvironmentTemplates() const{ return m_compatibleEnvironmentTemplates; } /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline bool CompatibleEnvironmentTemplatesHasBeenSet() const { return m_compatibleEnvironmentTemplatesHasBeenSet; } /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline void SetCompatibleEnvironmentTemplates(const Aws::Vector& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = value; } /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline void SetCompatibleEnvironmentTemplates(Aws::Vector&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = std::move(value); } /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline ServiceTemplateVersion& WithCompatibleEnvironmentTemplates(const Aws::Vector& value) { SetCompatibleEnvironmentTemplates(value); return *this;} /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline ServiceTemplateVersion& WithCompatibleEnvironmentTemplates(Aws::Vector&& value) { SetCompatibleEnvironmentTemplates(std::move(value)); return *this;} /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline ServiceTemplateVersion& AddCompatibleEnvironmentTemplates(const CompatibleEnvironmentTemplate& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(value); return *this; } /** *

An array of compatible environment template names for the major version of a * service template.

*/ inline ServiceTemplateVersion& AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplate&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(std::move(value)); return *this; } /** *

The time when the version of a service template was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when the version of a service template was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the version of a service template was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time when the version of a service template was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time when the version of a service template was created.

*/ inline ServiceTemplateVersion& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when the version of a service template was created.

*/ inline ServiceTemplateVersion& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

A description of the version of a service template.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the version of a service template.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the version of a service template.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the version of a service template.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the version of a service template.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the version of a service template.

*/ inline ServiceTemplateVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the version of a service template.

*/ inline ServiceTemplateVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the version of a service template.

*/ inline ServiceTemplateVersion& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The time when the version of a service template was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; } /** *

The time when the version of a service template was last modified.

*/ inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; } /** *

The time when the version of a service template was last modified.

*/ inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; } /** *

The time when the version of a service template was last modified.

*/ inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); } /** *

The time when the version of a service template was last modified.

*/ inline ServiceTemplateVersion& WithLastModifiedAt(const Aws::Utils::DateTime& value) { SetLastModifiedAt(value); return *this;} /** *

The time when the version of a service template was last modified.

*/ inline ServiceTemplateVersion& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;} /** *

The latest major version that's associated with the version of a service * template.

*/ inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; } /** *

The latest major version that's associated with the version of a service * template.

*/ inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; } /** *

The latest major version that's associated with the version of a service * template.

*/ inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; } /** *

The latest major version that's associated with the version of a service * template.

*/ inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); } /** *

The latest major version that's associated with the version of a service * template.

*/ inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); } /** *

The latest major version that's associated with the version of a service * template.

*/ inline ServiceTemplateVersion& WithMajorVersion(const Aws::String& value) { SetMajorVersion(value); return *this;} /** *

The latest major version that's associated with the version of a service * template.

*/ inline ServiceTemplateVersion& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;} /** *

The latest major version that's associated with the version of a service * template.

*/ inline ServiceTemplateVersion& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;} /** *

The minor version of a service template.

*/ inline const Aws::String& GetMinorVersion() const{ return m_minorVersion; } /** *

The minor version of a service template.

*/ inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; } /** *

The minor version of a service template.

*/ inline void SetMinorVersion(const Aws::String& value) { m_minorVersionHasBeenSet = true; m_minorVersion = value; } /** *

The minor version of a service template.

*/ inline void SetMinorVersion(Aws::String&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::move(value); } /** *

The minor version of a service template.

*/ inline void SetMinorVersion(const char* value) { m_minorVersionHasBeenSet = true; m_minorVersion.assign(value); } /** *

The minor version of a service template.

*/ inline ServiceTemplateVersion& WithMinorVersion(const Aws::String& value) { SetMinorVersion(value); return *this;} /** *

The minor version of a service template.

*/ inline ServiceTemplateVersion& WithMinorVersion(Aws::String&& value) { SetMinorVersion(std::move(value)); return *this;} /** *

The minor version of a service template.

*/ inline ServiceTemplateVersion& WithMinorVersion(const char* value) { SetMinorVersion(value); return *this;} /** *

The recommended minor version of the service template.

*/ inline const Aws::String& GetRecommendedMinorVersion() const{ return m_recommendedMinorVersion; } /** *

The recommended minor version of the service template.

*/ inline bool RecommendedMinorVersionHasBeenSet() const { return m_recommendedMinorVersionHasBeenSet; } /** *

The recommended minor version of the service template.

*/ inline void SetRecommendedMinorVersion(const Aws::String& value) { m_recommendedMinorVersionHasBeenSet = true; m_recommendedMinorVersion = value; } /** *

The recommended minor version of the service template.

*/ inline void SetRecommendedMinorVersion(Aws::String&& value) { m_recommendedMinorVersionHasBeenSet = true; m_recommendedMinorVersion = std::move(value); } /** *

The recommended minor version of the service template.

*/ inline void SetRecommendedMinorVersion(const char* value) { m_recommendedMinorVersionHasBeenSet = true; m_recommendedMinorVersion.assign(value); } /** *

The recommended minor version of the service template.

*/ inline ServiceTemplateVersion& WithRecommendedMinorVersion(const Aws::String& value) { SetRecommendedMinorVersion(value); return *this;} /** *

The recommended minor version of the service template.

*/ inline ServiceTemplateVersion& WithRecommendedMinorVersion(Aws::String&& value) { SetRecommendedMinorVersion(std::move(value)); return *this;} /** *

The recommended minor version of the service template.

*/ inline ServiceTemplateVersion& WithRecommendedMinorVersion(const char* value) { SetRecommendedMinorVersion(value); return *this;} /** *

The schema of the version of a service template.

*/ inline const Aws::String& GetSchema() const{ return m_schema; } /** *

The schema of the version of a service template.

*/ inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; } /** *

The schema of the version of a service template.

*/ inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; } /** *

The schema of the version of a service template.

*/ inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); } /** *

The schema of the version of a service template.

*/ inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); } /** *

The schema of the version of a service template.

*/ inline ServiceTemplateVersion& WithSchema(const Aws::String& value) { SetSchema(value); return *this;} /** *

The schema of the version of a service template.

*/ inline ServiceTemplateVersion& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;} /** *

The schema of the version of a service template.

*/ inline ServiceTemplateVersion& WithSchema(const char* value) { SetSchema(value); return *this;} /** *

The service template version status.

*/ inline const TemplateVersionStatus& GetStatus() const{ return m_status; } /** *

The service template version status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The service template version status.

*/ inline void SetStatus(const TemplateVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The service template version status.

*/ inline void SetStatus(TemplateVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The service template version status.

*/ inline ServiceTemplateVersion& WithStatus(const TemplateVersionStatus& value) { SetStatus(value); return *this;} /** *

The service template version status.

*/ inline ServiceTemplateVersion& WithStatus(TemplateVersionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A service template version status message.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

A service template version status message.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

A service template version status message.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

A service template version status message.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

A service template version status message.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

A service template version status message.

*/ inline ServiceTemplateVersion& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

A service template version status message.

*/ inline ServiceTemplateVersion& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

A service template version status message.

*/ inline ServiceTemplateVersion& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline const Aws::Vector& GetSupportedComponentSources() const{ return m_supportedComponentSources; } /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline bool SupportedComponentSourcesHasBeenSet() const { return m_supportedComponentSourcesHasBeenSet; } /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline void SetSupportedComponentSources(const Aws::Vector& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = value; } /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline void SetSupportedComponentSources(Aws::Vector&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = std::move(value); } /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline ServiceTemplateVersion& WithSupportedComponentSources(const Aws::Vector& value) { SetSupportedComponentSources(value); return *this;} /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline ServiceTemplateVersion& WithSupportedComponentSources(Aws::Vector&& value) { SetSupportedComponentSources(std::move(value)); return *this;} /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline ServiceTemplateVersion& AddSupportedComponentSources(const ServiceTemplateSupportedComponentSourceType& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(value); return *this; } /** *

An array of supported component sources. Components with supported sources * can be attached to service instances based on this service template version.

*

For more information about components, see Proton * components in the Proton User Guide.

*/ inline ServiceTemplateVersion& AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(std::move(value)); return *this; } /** *

The name of the version of a service template.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of the version of a service template.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The name of the version of a service template.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The name of the version of a service template.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The name of the version of a service template.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The name of the version of a service template.

*/ inline ServiceTemplateVersion& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the version of a service template.

*/ inline ServiceTemplateVersion& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of the version of a service template.

*/ inline ServiceTemplateVersion& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Vector m_compatibleEnvironmentTemplates; bool m_compatibleEnvironmentTemplatesHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedAt; bool m_lastModifiedAtHasBeenSet = false; Aws::String m_majorVersion; bool m_majorVersionHasBeenSet = false; Aws::String m_minorVersion; bool m_minorVersionHasBeenSet = false; Aws::String m_recommendedMinorVersion; bool m_recommendedMinorVersionHasBeenSet = false; Aws::String m_schema; bool m_schemaHasBeenSet = false; TemplateVersionStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Vector m_supportedComponentSources; bool m_supportedComponentSourcesHasBeenSet = false; Aws::String m_templateName; bool m_templateNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws