1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/pinpoint/Pinpoint_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Pinpoint
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Specifies the segment identifier and version of a segment.</p><p><h3>See
28    * Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentReference">AWS
30    * API Reference</a></p>
31    */
32   class AWS_PINPOINT_API SegmentReference
33   {
34   public:
35     SegmentReference();
36     SegmentReference(Aws::Utils::Json::JsonView jsonValue);
37     SegmentReference& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The unique identifier for the segment.</p>
43      */
GetId()44     inline const Aws::String& GetId() const{ return m_id; }
45 
46     /**
47      * <p>The unique identifier for the segment.</p>
48      */
IdHasBeenSet()49     inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 
51     /**
52      * <p>The unique identifier for the segment.</p>
53      */
SetId(const Aws::String & value)54     inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
56     /**
57      * <p>The unique identifier for the segment.</p>
58      */
SetId(Aws::String && value)59     inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 
61     /**
62      * <p>The unique identifier for the segment.</p>
63      */
SetId(const char * value)64     inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
66     /**
67      * <p>The unique identifier for the segment.</p>
68      */
WithId(const Aws::String & value)69     inline SegmentReference& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
71     /**
72      * <p>The unique identifier for the segment.</p>
73      */
WithId(Aws::String && value)74     inline SegmentReference& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
75 
76     /**
77      * <p>The unique identifier for the segment.</p>
78      */
WithId(const char * value)79     inline SegmentReference& WithId(const char* value) { SetId(value); return *this;}
80 
81 
82     /**
83      * <p>The version number of the segment.</p>
84      */
GetVersion()85     inline int GetVersion() const{ return m_version; }
86 
87     /**
88      * <p>The version number of the segment.</p>
89      */
VersionHasBeenSet()90     inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
91 
92     /**
93      * <p>The version number of the segment.</p>
94      */
SetVersion(int value)95     inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
96 
97     /**
98      * <p>The version number of the segment.</p>
99      */
WithVersion(int value)100     inline SegmentReference& WithVersion(int value) { SetVersion(value); return *this;}
101 
102   private:
103 
104     Aws::String m_id;
105     bool m_idHasBeenSet;
106 
107     int m_version;
108     bool m_versionHasBeenSet;
109   };
110 
111 } // namespace Model
112 } // namespace Pinpoint
113 } // namespace Aws
114