/**
* 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 ElasticsearchService
{
namespace Model
{
/**
* A map from an ElasticsearchVersion
to a list of
* compatible ElasticsearchVersion
s to which the domain can
* be upgraded.
See Also:
AWS
* API Reference
*/
class CompatibleVersionsMap
{
public:
AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap();
AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The current version of Elasticsearch on which a domain is.
*/
inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
/**
* The current version of Elasticsearch on which a domain is.
*/
inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
/**
* The current version of Elasticsearch on which a domain is.
*/
inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
/**
* The current version of Elasticsearch on which a domain is.
*/
inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
/**
* The current version of Elasticsearch on which a domain is.
*/
inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
/**
* The current version of Elasticsearch on which a domain is.
*/
inline CompatibleVersionsMap& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
/**
* The current version of Elasticsearch on which a domain is.
*/
inline CompatibleVersionsMap& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
/**
* The current version of Elasticsearch on which a domain is.
*/
inline CompatibleVersionsMap& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
inline const Aws::Vector& GetTargetVersions() const{ return m_targetVersions; }
inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; }
inline void SetTargetVersions(const Aws::Vector& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = value; }
inline void SetTargetVersions(Aws::Vector&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = std::move(value); }
inline CompatibleVersionsMap& WithTargetVersions(const Aws::Vector& value) { SetTargetVersions(value); return *this;}
inline CompatibleVersionsMap& WithTargetVersions(Aws::Vector&& value) { SetTargetVersions(std::move(value)); return *this;}
inline CompatibleVersionsMap& AddTargetVersions(const Aws::String& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; }
inline CompatibleVersionsMap& AddTargetVersions(Aws::String&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(std::move(value)); return *this; }
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 m_targetVersions;
bool m_targetVersionsHasBeenSet = false;
};
} // namespace Model
} // namespace ElasticsearchService
} // namespace Aws