AWS SDK for C++  1.8.56
AWS SDK for C++
MatchmakingRuleSet.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
60  {
61  public:
64  MatchmakingRuleSet& operator=(Aws::Utils::Json::JsonView jsonValue);
65  Aws::Utils::Json::JsonValue Jsonize() const;
66 
67 
71  inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
72 
76  inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
77 
81  inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
82 
86  inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
87 
91  inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
92 
96  inline MatchmakingRuleSet& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
97 
101  inline MatchmakingRuleSet& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
102 
106  inline MatchmakingRuleSet& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
107 
108 
116  inline const Aws::String& GetRuleSetArn() const{ return m_ruleSetArn; }
117 
125  inline bool RuleSetArnHasBeenSet() const { return m_ruleSetArnHasBeenSet; }
126 
134  inline void SetRuleSetArn(const Aws::String& value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn = value; }
135 
143  inline void SetRuleSetArn(Aws::String&& value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn = std::move(value); }
144 
152  inline void SetRuleSetArn(const char* value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn.assign(value); }
153 
161  inline MatchmakingRuleSet& WithRuleSetArn(const Aws::String& value) { SetRuleSetArn(value); return *this;}
162 
170  inline MatchmakingRuleSet& WithRuleSetArn(Aws::String&& value) { SetRuleSetArn(std::move(value)); return *this;}
171 
179  inline MatchmakingRuleSet& WithRuleSetArn(const char* value) { SetRuleSetArn(value); return *this;}
180 
181 
186  inline const Aws::String& GetRuleSetBody() const{ return m_ruleSetBody; }
187 
192  inline bool RuleSetBodyHasBeenSet() const { return m_ruleSetBodyHasBeenSet; }
193 
198  inline void SetRuleSetBody(const Aws::String& value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody = value; }
199 
204  inline void SetRuleSetBody(Aws::String&& value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody = std::move(value); }
205 
210  inline void SetRuleSetBody(const char* value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody.assign(value); }
211 
216  inline MatchmakingRuleSet& WithRuleSetBody(const Aws::String& value) { SetRuleSetBody(value); return *this;}
217 
222  inline MatchmakingRuleSet& WithRuleSetBody(Aws::String&& value) { SetRuleSetBody(std::move(value)); return *this;}
223 
228  inline MatchmakingRuleSet& WithRuleSetBody(const char* value) { SetRuleSetBody(value); return *this;}
229 
230 
236  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
237 
243  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
244 
250  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
251 
257  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
258 
264  inline MatchmakingRuleSet& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
265 
271  inline MatchmakingRuleSet& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
272 
273  private:
274 
275  Aws::String m_ruleSetName;
276  bool m_ruleSetNameHasBeenSet;
277 
278  Aws::String m_ruleSetArn;
279  bool m_ruleSetArnHasBeenSet;
280 
281  Aws::String m_ruleSetBody;
282  bool m_ruleSetBodyHasBeenSet;
283 
284  Aws::Utils::DateTime m_creationTime;
285  bool m_creationTimeHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace GameLift
290 } // namespace Aws
void SetRuleSetName(const Aws::String &value)
const Aws::String & GetRuleSetBody() const
MatchmakingRuleSet & WithCreationTime(Aws::Utils::DateTime &&value)
#define AWS_GAMELIFT_API
MatchmakingRuleSet & WithRuleSetArn(Aws::String &&value)
void SetRuleSetArn(const Aws::String &value)
MatchmakingRuleSet & WithRuleSetBody(Aws::String &&value)
MatchmakingRuleSet & WithRuleSetBody(const char *value)
MatchmakingRuleSet & WithCreationTime(const Aws::Utils::DateTime &value)
MatchmakingRuleSet & WithRuleSetName(const char *value)
MatchmakingRuleSet & WithRuleSetArn(const char *value)
void SetCreationTime(Aws::Utils::DateTime &&value)
MatchmakingRuleSet & WithRuleSetName(Aws::String &&value)
const Aws::String & GetRuleSetName() const
MatchmakingRuleSet & WithRuleSetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
MatchmakingRuleSet & WithRuleSetBody(const Aws::String &value)
void SetRuleSetBody(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetRuleSetArn() const
MatchmakingRuleSet & WithRuleSetArn(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)