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 a segment to associate with an activity in a journey.</p><p><h3>See
28    * Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentCondition">AWS
30    * API Reference</a></p>
31    */
32   class AWS_PINPOINT_API SegmentCondition
33   {
34   public:
35     SegmentCondition();
36     SegmentCondition(Aws::Utils::Json::JsonView jsonValue);
37     SegmentCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The unique identifier for the segment to associate with the activity.</p>
43      */
GetSegmentId()44     inline const Aws::String& GetSegmentId() const{ return m_segmentId; }
45 
46     /**
47      * <p>The unique identifier for the segment to associate with the activity.</p>
48      */
SegmentIdHasBeenSet()49     inline bool SegmentIdHasBeenSet() const { return m_segmentIdHasBeenSet; }
50 
51     /**
52      * <p>The unique identifier for the segment to associate with the activity.</p>
53      */
SetSegmentId(const Aws::String & value)54     inline void SetSegmentId(const Aws::String& value) { m_segmentIdHasBeenSet = true; m_segmentId = value; }
55 
56     /**
57      * <p>The unique identifier for the segment to associate with the activity.</p>
58      */
SetSegmentId(Aws::String && value)59     inline void SetSegmentId(Aws::String&& value) { m_segmentIdHasBeenSet = true; m_segmentId = std::move(value); }
60 
61     /**
62      * <p>The unique identifier for the segment to associate with the activity.</p>
63      */
SetSegmentId(const char * value)64     inline void SetSegmentId(const char* value) { m_segmentIdHasBeenSet = true; m_segmentId.assign(value); }
65 
66     /**
67      * <p>The unique identifier for the segment to associate with the activity.</p>
68      */
WithSegmentId(const Aws::String & value)69     inline SegmentCondition& WithSegmentId(const Aws::String& value) { SetSegmentId(value); return *this;}
70 
71     /**
72      * <p>The unique identifier for the segment to associate with the activity.</p>
73      */
WithSegmentId(Aws::String && value)74     inline SegmentCondition& WithSegmentId(Aws::String&& value) { SetSegmentId(std::move(value)); return *this;}
75 
76     /**
77      * <p>The unique identifier for the segment to associate with the activity.</p>
78      */
WithSegmentId(const char * value)79     inline SegmentCondition& WithSegmentId(const char* value) { SetSegmentId(value); return *this;}
80 
81   private:
82 
83     Aws::String m_segmentId;
84     bool m_segmentIdHasBeenSet;
85   };
86 
87 } // namespace Model
88 } // namespace Pinpoint
89 } // namespace Aws
90