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/sagemaker/SageMaker_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 SageMaker
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>The Amazon Resource Name (ARN) and job type of the source of a trial
28    * component.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/TrialComponentSource">AWS
30    * API Reference</a></p>
31    */
32   class AWS_SAGEMAKER_API TrialComponentSource
33   {
34   public:
35     TrialComponentSource();
36     TrialComponentSource(Aws::Utils::Json::JsonView jsonValue);
37     TrialComponentSource& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The source ARN.</p>
43      */
GetSourceArn()44     inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
45 
46     /**
47      * <p>The source ARN.</p>
48      */
SourceArnHasBeenSet()49     inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
50 
51     /**
52      * <p>The source ARN.</p>
53      */
SetSourceArn(const Aws::String & value)54     inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
55 
56     /**
57      * <p>The source ARN.</p>
58      */
SetSourceArn(Aws::String && value)59     inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
60 
61     /**
62      * <p>The source ARN.</p>
63      */
SetSourceArn(const char * value)64     inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
65 
66     /**
67      * <p>The source ARN.</p>
68      */
WithSourceArn(const Aws::String & value)69     inline TrialComponentSource& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
70 
71     /**
72      * <p>The source ARN.</p>
73      */
WithSourceArn(Aws::String && value)74     inline TrialComponentSource& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
75 
76     /**
77      * <p>The source ARN.</p>
78      */
WithSourceArn(const char * value)79     inline TrialComponentSource& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
80 
81 
82     /**
83      * <p>The source job type.</p>
84      */
GetSourceType()85     inline const Aws::String& GetSourceType() const{ return m_sourceType; }
86 
87     /**
88      * <p>The source job type.</p>
89      */
SourceTypeHasBeenSet()90     inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
91 
92     /**
93      * <p>The source job type.</p>
94      */
SetSourceType(const Aws::String & value)95     inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
96 
97     /**
98      * <p>The source job type.</p>
99      */
SetSourceType(Aws::String && value)100     inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
101 
102     /**
103      * <p>The source job type.</p>
104      */
SetSourceType(const char * value)105     inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
106 
107     /**
108      * <p>The source job type.</p>
109      */
WithSourceType(const Aws::String & value)110     inline TrialComponentSource& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
111 
112     /**
113      * <p>The source job type.</p>
114      */
WithSourceType(Aws::String && value)115     inline TrialComponentSource& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
116 
117     /**
118      * <p>The source job type.</p>
119      */
WithSourceType(const char * value)120     inline TrialComponentSource& WithSourceType(const char* value) { SetSourceType(value); return *this;}
121 
122   private:
123 
124     Aws::String m_sourceArn;
125     bool m_sourceArnHasBeenSet;
126 
127     Aws::String m_sourceType;
128     bool m_sourceTypeHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace SageMaker
133 } // namespace Aws
134