AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateTrialRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SageMaker
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateTrial"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
40  inline const Aws::String& GetTrialName() const{ return m_trialName; }
41 
45  inline bool TrialNameHasBeenSet() const { return m_trialNameHasBeenSet; }
46 
50  inline void SetTrialName(const Aws::String& value) { m_trialNameHasBeenSet = true; m_trialName = value; }
51 
55  inline void SetTrialName(Aws::String&& value) { m_trialNameHasBeenSet = true; m_trialName = std::move(value); }
56 
60  inline void SetTrialName(const char* value) { m_trialNameHasBeenSet = true; m_trialName.assign(value); }
61 
65  inline UpdateTrialRequest& WithTrialName(const Aws::String& value) { SetTrialName(value); return *this;}
66 
70  inline UpdateTrialRequest& WithTrialName(Aws::String&& value) { SetTrialName(std::move(value)); return *this;}
71 
75  inline UpdateTrialRequest& WithTrialName(const char* value) { SetTrialName(value); return *this;}
76 
77 
83  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
84 
90  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
91 
97  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
98 
104  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
105 
111  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
112 
118  inline UpdateTrialRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
119 
125  inline UpdateTrialRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
126 
132  inline UpdateTrialRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
133 
134  private:
135 
136  Aws::String m_trialName;
137  bool m_trialNameHasBeenSet;
138 
139  Aws::String m_displayName;
140  bool m_displayNameHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace SageMaker
145 } // namespace Aws
#define AWS_SAGEMAKER_API
UpdateTrialRequest & WithDisplayName(Aws::String &&value)
UpdateTrialRequest & WithTrialName(const char *value)
const Aws::String & GetDisplayName() const
const Aws::String & GetTrialName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetTrialName(const Aws::String &value)
void SetDisplayName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateTrialRequest & WithTrialName(const Aws::String &value)
UpdateTrialRequest & WithDisplayName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateTrialRequest & WithTrialName(Aws::String &&value)
UpdateTrialRequest & WithDisplayName(const char *value)