AWS SDK for C++  1.7.226
AWS SDK for C++
CreatePlayerSessionsResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
20 #include <utility>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace GameLift
35 {
36 namespace Model
37 {
45  {
46  public:
50 
51 
55  inline const Aws::Vector<PlayerSession>& GetPlayerSessions() const{ return m_playerSessions; }
56 
60  inline void SetPlayerSessions(const Aws::Vector<PlayerSession>& value) { m_playerSessions = value; }
61 
65  inline void SetPlayerSessions(Aws::Vector<PlayerSession>&& value) { m_playerSessions = std::move(value); }
66 
70  inline CreatePlayerSessionsResult& WithPlayerSessions(const Aws::Vector<PlayerSession>& value) { SetPlayerSessions(value); return *this;}
71 
75  inline CreatePlayerSessionsResult& WithPlayerSessions(Aws::Vector<PlayerSession>&& value) { SetPlayerSessions(std::move(value)); return *this;}
76 
80  inline CreatePlayerSessionsResult& AddPlayerSessions(const PlayerSession& value) { m_playerSessions.push_back(value); return *this; }
81 
85  inline CreatePlayerSessionsResult& AddPlayerSessions(PlayerSession&& value) { m_playerSessions.push_back(std::move(value)); return *this; }
86 
87  private:
88 
89  Aws::Vector<PlayerSession> m_playerSessions;
90  };
91 
92 } // namespace Model
93 } // namespace GameLift
94 } // namespace Aws
#define AWS_GAMELIFT_API
CreatePlayerSessionsResult & WithPlayerSessions(const Aws::Vector< PlayerSession > &value)
CreatePlayerSessionsResult & AddPlayerSessions(const PlayerSession &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< PlayerSession > & GetPlayerSessions() const
void SetPlayerSessions(const Aws::Vector< PlayerSession > &value)
CreatePlayerSessionsResult & WithPlayerSessions(Aws::Vector< PlayerSession > &&value)
void SetPlayerSessions(Aws::Vector< PlayerSession > &&value)
CreatePlayerSessionsResult & AddPlayerSessions(PlayerSession &&value)