/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies which version of a message template to use as the active version of
* the template.See Also:
AWS
* API Reference
The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline TemplateActiveVersionRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline TemplateActiveVersionRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The version of the message template to use as the active version of the * template. Valid values are: latest, for the most recent version of the template; * or, the unique identifier for any existing version of the template. If you * specify an identifier, the value must match the identifier for an existing * template version. To retrieve a list of versions and version identifiers for a * template, use the Template * Versions resource.
*/ inline TemplateActiveVersionRequest& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws