/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Proton { namespace Model { /** *

The detailed data about the current state of this service * instance.

See Also:

AWS * API Reference

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

The IDs for the last successful components deployed for this service * instance.

*/ inline const Aws::Vector& GetLastSuccessfulComponentDeploymentIds() const{ return m_lastSuccessfulComponentDeploymentIds; } /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline bool LastSuccessfulComponentDeploymentIdsHasBeenSet() const { return m_lastSuccessfulComponentDeploymentIdsHasBeenSet; } /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline void SetLastSuccessfulComponentDeploymentIds(const Aws::Vector& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds = value; } /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline void SetLastSuccessfulComponentDeploymentIds(Aws::Vector&& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds = std::move(value); } /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulComponentDeploymentIds(const Aws::Vector& value) { SetLastSuccessfulComponentDeploymentIds(value); return *this;} /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulComponentDeploymentIds(Aws::Vector&& value) { SetLastSuccessfulComponentDeploymentIds(std::move(value)); return *this;} /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(const Aws::String& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds.push_back(value); return *this; } /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(Aws::String&& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds.push_back(std::move(value)); return *this; } /** *

The IDs for the last successful components deployed for this service * instance.

*/ inline ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(const char* value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds.push_back(value); return *this; } /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline const Aws::String& GetLastSuccessfulEnvironmentDeploymentId() const{ return m_lastSuccessfulEnvironmentDeploymentId; } /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline bool LastSuccessfulEnvironmentDeploymentIdHasBeenSet() const { return m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet; } /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline void SetLastSuccessfulEnvironmentDeploymentId(const Aws::String& value) { m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true; m_lastSuccessfulEnvironmentDeploymentId = value; } /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline void SetLastSuccessfulEnvironmentDeploymentId(Aws::String&& value) { m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true; m_lastSuccessfulEnvironmentDeploymentId = std::move(value); } /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline void SetLastSuccessfulEnvironmentDeploymentId(const char* value) { m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true; m_lastSuccessfulEnvironmentDeploymentId.assign(value); } /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulEnvironmentDeploymentId(const Aws::String& value) { SetLastSuccessfulEnvironmentDeploymentId(value); return *this;} /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulEnvironmentDeploymentId(Aws::String&& value) { SetLastSuccessfulEnvironmentDeploymentId(std::move(value)); return *this;} /** *

The ID for the last successful environment deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulEnvironmentDeploymentId(const char* value) { SetLastSuccessfulEnvironmentDeploymentId(value); return *this;} /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline const Aws::String& GetLastSuccessfulServicePipelineDeploymentId() const{ return m_lastSuccessfulServicePipelineDeploymentId; } /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline bool LastSuccessfulServicePipelineDeploymentIdHasBeenSet() const { return m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet; } /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline void SetLastSuccessfulServicePipelineDeploymentId(const Aws::String& value) { m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true; m_lastSuccessfulServicePipelineDeploymentId = value; } /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline void SetLastSuccessfulServicePipelineDeploymentId(Aws::String&& value) { m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true; m_lastSuccessfulServicePipelineDeploymentId = std::move(value); } /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline void SetLastSuccessfulServicePipelineDeploymentId(const char* value) { m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true; m_lastSuccessfulServicePipelineDeploymentId.assign(value); } /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulServicePipelineDeploymentId(const Aws::String& value) { SetLastSuccessfulServicePipelineDeploymentId(value); return *this;} /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulServicePipelineDeploymentId(Aws::String&& value) { SetLastSuccessfulServicePipelineDeploymentId(std::move(value)); return *this;} /** *

The ID for the last successful service pipeline deployed for this service * instance.

*/ inline ServiceInstanceState& WithLastSuccessfulServicePipelineDeploymentId(const char* value) { SetLastSuccessfulServicePipelineDeploymentId(value); return *this;} /** *

The service spec that was used to create the service instance.

*/ inline const Aws::String& GetSpec() const{ return m_spec; } /** *

The service spec that was used to create the service instance.

*/ inline bool SpecHasBeenSet() const { return m_specHasBeenSet; } /** *

The service spec that was used to create the service instance.

*/ inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; } /** *

The service spec that was used to create the service instance.

*/ inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); } /** *

The service spec that was used to create the service instance.

*/ inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); } /** *

The service spec that was used to create the service instance.

*/ inline ServiceInstanceState& WithSpec(const Aws::String& value) { SetSpec(value); return *this;} /** *

The service spec that was used to create the service instance.

*/ inline ServiceInstanceState& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;} /** *

The service spec that was used to create the service instance.

*/ inline ServiceInstanceState& WithSpec(const char* value) { SetSpec(value); return *this;} /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; } /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; } /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; } /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); } /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); } /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline ServiceInstanceState& WithTemplateMajorVersion(const Aws::String& value) { SetTemplateMajorVersion(value); return *this;} /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline ServiceInstanceState& WithTemplateMajorVersion(Aws::String&& value) { SetTemplateMajorVersion(std::move(value)); return *this;} /** *

The major version of the service template that was used to create the service * pipeline.

*/ inline ServiceInstanceState& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;} /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; } /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; } /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; } /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); } /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); } /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline ServiceInstanceState& WithTemplateMinorVersion(const Aws::String& value) { SetTemplateMinorVersion(value); return *this;} /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline ServiceInstanceState& WithTemplateMinorVersion(Aws::String&& value) { SetTemplateMinorVersion(std::move(value)); return *this;} /** *

The minor version of the service template that was used to create the service * pipeline.

*/ inline ServiceInstanceState& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;} /** *

The name of the service template that was used to create the service * instance.

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

The name of the service template that was used to create the service * instance.

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

The name of the service template that was used to create the service * instance.

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

The name of the service template that was used to create the service * instance.

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

The name of the service template that was used to create the service * instance.

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

The name of the service template that was used to create the service * instance.

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

The name of the service template that was used to create the service * instance.

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

The name of the service template that was used to create the service * instance.

*/ inline ServiceInstanceState& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} private: Aws::Vector m_lastSuccessfulComponentDeploymentIds; bool m_lastSuccessfulComponentDeploymentIdsHasBeenSet = false; Aws::String m_lastSuccessfulEnvironmentDeploymentId; bool m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = false; Aws::String m_lastSuccessfulServicePipelineDeploymentId; bool m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = false; Aws::String m_spec; bool m_specHasBeenSet = false; Aws::String m_templateMajorVersion; bool m_templateMajorVersionHasBeenSet = false; Aws::String m_templateMinorVersion; bool m_templateMinorVersionHasBeenSet = false; Aws::String m_templateName; bool m_templateNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws