/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A map of OpenSearch or Elasticsearch versions and the versions you can
* upgrade them to.See Also:
AWS
* API Reference
The current version that the OpenSearch Service domain is running.
*/ inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; } /** *The current version that the OpenSearch Service domain is running.
*/ inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; } /** *The current version that the OpenSearch Service domain is running.
*/ inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; } /** *The current version that the OpenSearch Service domain is running.
*/ inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); } /** *The current version that the OpenSearch Service domain is running.
*/ inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); } /** *The current version that the OpenSearch Service domain is running.
*/ inline CompatibleVersionsMap& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;} /** *The current version that the OpenSearch Service domain is running.
*/ inline CompatibleVersionsMap& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;} /** *The current version that the OpenSearch Service domain is running.
*/ inline CompatibleVersionsMap& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;} /** *The possible versions that you can upgrade the domain to.
*/ inline const Aws::VectorThe possible versions that you can upgrade the domain to.
*/ inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; } /** *The possible versions that you can upgrade the domain to.
*/ inline void SetTargetVersions(const Aws::VectorThe possible versions that you can upgrade the domain to.
*/ inline void SetTargetVersions(Aws::VectorThe possible versions that you can upgrade the domain to.
*/ inline CompatibleVersionsMap& WithTargetVersions(const Aws::VectorThe possible versions that you can upgrade the domain to.
*/ inline CompatibleVersionsMap& WithTargetVersions(Aws::VectorThe possible versions that you can upgrade the domain to.
*/ inline CompatibleVersionsMap& AddTargetVersions(const Aws::String& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; } /** *The possible versions that you can upgrade the domain to.
*/ inline CompatibleVersionsMap& AddTargetVersions(Aws::String&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(std::move(value)); return *this; } /** *The possible versions that you can upgrade the domain to.
*/ inline CompatibleVersionsMap& AddTargetVersions(const char* value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; } private: Aws::String m_sourceVersion; bool m_sourceVersionHasBeenSet = false; Aws::Vector