316 lines
16 KiB
C
316 lines
16 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/gamelift/GameLift_EXPORTS.h>
|
|||
|
|
#include <aws/gamelift/GameLiftRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/gamelift/model/PlayerLatencyPolicy.h>
|
|||
|
|
#include <aws/gamelift/model/GameSessionQueueDestination.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace GameLift
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Represents the input for a request action.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueueInput">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_GAMELIFT_API UpdateGameSessionQueueRequest : public GameLiftRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
UpdateGameSessionQueueRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "UpdateGameSessionQueue"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A descriptive label that is associated with game session queue. Queue names
|
|||
|
|
* must be unique within each Region. You can use either the queue ID or ARN value.
|
|||
|
|
* </p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithName(const char* value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The maximum time, in seconds, that a new game session placement request
|
|||
|
|
* remains in the queue. When a request exceeds this time, the game session
|
|||
|
|
* placement changes to a <code>TIMED_OUT</code> status.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The maximum time, in seconds, that a new game session placement request
|
|||
|
|
* remains in the queue. When a request exceeds this time, the game session
|
|||
|
|
* placement changes to a <code>TIMED_OUT</code> status.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The maximum time, in seconds, that a new game session placement request
|
|||
|
|
* remains in the queue. When a request exceeds this time, the game session
|
|||
|
|
* placement changes to a <code>TIMED_OUT</code> status.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The maximum time, in seconds, that a new game session placement request
|
|||
|
|
* remains in the queue. When a request exceeds this time, the game session
|
|||
|
|
* placement changes to a <code>TIMED_OUT</code> status.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const{ return m_playerLatencyPolicies; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPlayerLatencyPolicies(const Aws::Vector<PlayerLatencyPolicy>& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPlayerLatencyPolicies(Aws::Vector<PlayerLatencyPolicy>&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithPlayerLatencyPolicies(const Aws::Vector<PlayerLatencyPolicy>& value) { SetPlayerLatencyPolicies(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithPlayerLatencyPolicies(Aws::Vector<PlayerLatencyPolicy>&& value) { SetPlayerLatencyPolicies(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& AddPlayerLatencyPolicies(const PlayerLatencyPolicy& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A collection of latency policies to apply when processing game sessions
|
|||
|
|
* placement requests with player latency information. Multiple policies are
|
|||
|
|
* evaluated in order of the maximum latency value, starting with the lowest
|
|||
|
|
* latency values. With just one policy, the policy is enforced at the start of the
|
|||
|
|
* game session placement for the duration period. With multiple policies, each
|
|||
|
|
* policy is enforced consecutively for its duration period. For example, a queue
|
|||
|
|
* might enforce a 60-second policy followed by a 120-second policy, and then no
|
|||
|
|
* policy for the remainder of the placement. When updating policies, provide a
|
|||
|
|
* complete collection of policies.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& AddPlayerLatencyPolicies(PlayerLatencyPolicy&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const{ return m_destinations; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDestinations(const Aws::Vector<GameSessionQueueDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDestinations(Aws::Vector<GameSessionQueueDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithDestinations(const Aws::Vector<GameSessionQueueDestination>& value) { SetDestinations(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& WithDestinations(Aws::Vector<GameSessionQueueDestination>&& value) { SetDestinations(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& AddDestinations(const GameSessionQueueDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of fleets that can be used to fulfill game session placement requests
|
|||
|
|
* in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN.
|
|||
|
|
* Destinations are listed in default preference order. When updating this list,
|
|||
|
|
* provide a complete list of destinations.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateGameSessionQueueRequest& AddDestinations(GameSessionQueueDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_timeoutInSeconds;
|
|||
|
|
bool m_timeoutInSecondsHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
|
|||
|
|
bool m_playerLatencyPoliciesHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<GameSessionQueueDestination> m_destinations;
|
|||
|
|
bool m_destinationsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace GameLift
|
|||
|
|
} // namespace Aws
|