AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
MatchmakingRuleSet.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
55 public:
56 AWS_GAMELIFT_API MatchmakingRuleSet() = default;
59 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
60
62
65 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
66 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
67 template <typename RuleSetNameT = Aws::String>
68 void SetRuleSetName(RuleSetNameT&& value) {
69 m_ruleSetNameHasBeenSet = true;
70 m_ruleSetName = std::forward<RuleSetNameT>(value);
71 }
72 template <typename RuleSetNameT = Aws::String>
73 MatchmakingRuleSet& WithRuleSetName(RuleSetNameT&& value) {
74 SetRuleSetName(std::forward<RuleSetNameT>(value));
75 return *this;
76 }
78
80
89 inline const Aws::String& GetRuleSetArn() const { return m_ruleSetArn; }
90 inline bool RuleSetArnHasBeenSet() const { return m_ruleSetArnHasBeenSet; }
91 template <typename RuleSetArnT = Aws::String>
92 void SetRuleSetArn(RuleSetArnT&& value) {
93 m_ruleSetArnHasBeenSet = true;
94 m_ruleSetArn = std::forward<RuleSetArnT>(value);
95 }
96 template <typename RuleSetArnT = Aws::String>
97 MatchmakingRuleSet& WithRuleSetArn(RuleSetArnT&& value) {
98 SetRuleSetArn(std::forward<RuleSetArnT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetRuleSetBody() const { return m_ruleSetBody; }
109 inline bool RuleSetBodyHasBeenSet() const { return m_ruleSetBodyHasBeenSet; }
110 template <typename RuleSetBodyT = Aws::String>
111 void SetRuleSetBody(RuleSetBodyT&& value) {
112 m_ruleSetBodyHasBeenSet = true;
113 m_ruleSetBody = std::forward<RuleSetBodyT>(value);
114 }
115 template <typename RuleSetBodyT = Aws::String>
116 MatchmakingRuleSet& WithRuleSetBody(RuleSetBodyT&& value) {
117 SetRuleSetBody(std::forward<RuleSetBodyT>(value));
118 return *this;
119 }
121
123
128 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
129 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
130 template <typename CreationTimeT = Aws::Utils::DateTime>
131 void SetCreationTime(CreationTimeT&& value) {
132 m_creationTimeHasBeenSet = true;
133 m_creationTime = std::forward<CreationTimeT>(value);
134 }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
136 MatchmakingRuleSet& WithCreationTime(CreationTimeT&& value) {
137 SetCreationTime(std::forward<CreationTimeT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_ruleSetName;
143
144 Aws::String m_ruleSetArn;
145
146 Aws::String m_ruleSetBody;
147
148 Aws::Utils::DateTime m_creationTime{};
149 bool m_ruleSetNameHasBeenSet = false;
150 bool m_ruleSetArnHasBeenSet = false;
151 bool m_ruleSetBodyHasBeenSet = false;
152 bool m_creationTimeHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace GameLift
157} // namespace Aws
MatchmakingRuleSet & WithCreationTime(CreationTimeT &&value)
AWS_GAMELIFT_API MatchmakingRuleSet(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRuleSetArn() const
MatchmakingRuleSet & WithRuleSetName(RuleSetNameT &&value)
const Aws::String & GetRuleSetName() const
AWS_GAMELIFT_API MatchmakingRuleSet()=default
MatchmakingRuleSet & WithRuleSetBody(RuleSetBodyT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetCreationTime(CreationTimeT &&value)
AWS_GAMELIFT_API MatchmakingRuleSet & operator=(Aws::Utils::Json::JsonView jsonValue)
MatchmakingRuleSet & WithRuleSetArn(RuleSetArnT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue