/** * 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 Pinpoint { namespace Model { /** *

Specifies the segment identifier and version of a segment.

See * Also:

AWS * API Reference

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

The unique identifier for the segment.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the segment.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the segment.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the segment.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the segment.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the segment.

*/ inline SegmentReference& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the segment.

*/ inline SegmentReference& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the segment.

*/ inline SegmentReference& WithId(const char* value) { SetId(value); return *this;} /** *

The version number of the segment.

*/ inline int GetVersion() const{ return m_version; } /** *

The version number of the segment.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version number of the segment.

*/ inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version number of the segment.

*/ inline SegmentReference& WithVersion(int value) { SetVersion(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; int m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws