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

A default version of a document.

See Also:

AWS * API Reference

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

The name of the document.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the document.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the document.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the document.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the document.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the document.

*/ inline DocumentDefaultVersionDescription& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the document.

*/ inline DocumentDefaultVersionDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the document.

*/ inline DocumentDefaultVersionDescription& WithName(const char* value) { SetName(value); return *this;} /** *

The default version of the document.

*/ inline const Aws::String& GetDefaultVersion() const{ return m_defaultVersion; } /** *

The default version of the document.

*/ inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; } /** *

The default version of the document.

*/ inline void SetDefaultVersion(const Aws::String& value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; } /** *

The default version of the document.

*/ inline void SetDefaultVersion(Aws::String&& value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = std::move(value); } /** *

The default version of the document.

*/ inline void SetDefaultVersion(const char* value) { m_defaultVersionHasBeenSet = true; m_defaultVersion.assign(value); } /** *

The default version of the document.

*/ inline DocumentDefaultVersionDescription& WithDefaultVersion(const Aws::String& value) { SetDefaultVersion(value); return *this;} /** *

The default version of the document.

*/ inline DocumentDefaultVersionDescription& WithDefaultVersion(Aws::String&& value) { SetDefaultVersion(std::move(value)); return *this;} /** *

The default version of the document.

*/ inline DocumentDefaultVersionDescription& WithDefaultVersion(const char* value) { SetDefaultVersion(value); return *this;} /** *

The default version of the artifact associated with the document.

*/ inline const Aws::String& GetDefaultVersionName() const{ return m_defaultVersionName; } /** *

The default version of the artifact associated with the document.

*/ inline bool DefaultVersionNameHasBeenSet() const { return m_defaultVersionNameHasBeenSet; } /** *

The default version of the artifact associated with the document.

*/ inline void SetDefaultVersionName(const Aws::String& value) { m_defaultVersionNameHasBeenSet = true; m_defaultVersionName = value; } /** *

The default version of the artifact associated with the document.

*/ inline void SetDefaultVersionName(Aws::String&& value) { m_defaultVersionNameHasBeenSet = true; m_defaultVersionName = std::move(value); } /** *

The default version of the artifact associated with the document.

*/ inline void SetDefaultVersionName(const char* value) { m_defaultVersionNameHasBeenSet = true; m_defaultVersionName.assign(value); } /** *

The default version of the artifact associated with the document.

*/ inline DocumentDefaultVersionDescription& WithDefaultVersionName(const Aws::String& value) { SetDefaultVersionName(value); return *this;} /** *

The default version of the artifact associated with the document.

*/ inline DocumentDefaultVersionDescription& WithDefaultVersionName(Aws::String&& value) { SetDefaultVersionName(std::move(value)); return *this;} /** *

The default version of the artifact associated with the document.

*/ inline DocumentDefaultVersionDescription& WithDefaultVersionName(const char* value) { SetDefaultVersionName(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_defaultVersion; bool m_defaultVersionHasBeenSet = false; Aws::String m_defaultVersionName; bool m_defaultVersionNameHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws