/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class GetSpotPlacementScoresResponse { public: AWS_EC2_API GetSpotPlacementScoresResponse(); AWS_EC2_API GetSpotPlacementScoresResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API GetSpotPlacementScoresResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Spot placement score for the top 10 Regions or Availability Zones, scored * on a scale from 1 to 10. Each score
 reflects how likely it is that each * Region or Availability Zone will succeed at fulfilling the specified target * capacity
 at the time of the Spot placement score request. A score * of 10 means that your Spot capacity request is highly likely to * succeed in that Region or Availability Zone.

If you request a Spot * placement score for Regions, a high score assumes that your fleet request will * be configured to use all Availability Zones and the * capacity-optimized allocation strategy. If you request a Spot * placement score for Availability Zones, a high score assumes that your fleet * request will be configured to use a single Availability Zone and the * capacity-optimized allocation strategy.

Different
 * Regions or Availability Zones might return the same score.

The * Spot placement score serves as a recommendation only. No score guarantees that * your Spot request will be fully or partially fulfilled.

*/ inline const Aws::Vector& GetSpotPlacementScores() const{ return m_spotPlacementScores; } /** *

The Spot placement score for the top 10 Regions or Availability Zones, scored * on a scale from 1 to 10. Each score
 reflects how likely it is that each * Region or Availability Zone will succeed at fulfilling the specified target * capacity
 at the time of the Spot placement score request. A score * of 10 means that your Spot capacity request is highly likely to * succeed in that Region or Availability Zone.

If you request a Spot * placement score for Regions, a high score assumes that your fleet request will * be configured to use all Availability Zones and the * capacity-optimized allocation strategy. If you request a Spot * placement score for Availability Zones, a high score assumes that your fleet * request will be configured to use a single Availability Zone and the * capacity-optimized allocation strategy.

Different
 * Regions or Availability Zones might return the same score.

The * Spot placement score serves as a recommendation only. No score guarantees that * your Spot request will be fully or partially fulfilled.

*/ inline void SetSpotPlacementScores(const Aws::Vector& value) { m_spotPlacementScores = value; } /** *

The Spot placement score for the top 10 Regions or Availability Zones, scored * on a scale from 1 to 10. Each score
 reflects how likely it is that each * Region or Availability Zone will succeed at fulfilling the specified target * capacity
 at the time of the Spot placement score request. A score * of 10 means that your Spot capacity request is highly likely to * succeed in that Region or Availability Zone.

If you request a Spot * placement score for Regions, a high score assumes that your fleet request will * be configured to use all Availability Zones and the * capacity-optimized allocation strategy. If you request a Spot * placement score for Availability Zones, a high score assumes that your fleet * request will be configured to use a single Availability Zone and the * capacity-optimized allocation strategy.

Different
 * Regions or Availability Zones might return the same score.

The * Spot placement score serves as a recommendation only. No score guarantees that * your Spot request will be fully or partially fulfilled.

*/ inline void SetSpotPlacementScores(Aws::Vector&& value) { m_spotPlacementScores = std::move(value); } /** *

The Spot placement score for the top 10 Regions or Availability Zones, scored * on a scale from 1 to 10. Each score
 reflects how likely it is that each * Region or Availability Zone will succeed at fulfilling the specified target * capacity
 at the time of the Spot placement score request. A score * of 10 means that your Spot capacity request is highly likely to * succeed in that Region or Availability Zone.

If you request a Spot * placement score for Regions, a high score assumes that your fleet request will * be configured to use all Availability Zones and the * capacity-optimized allocation strategy. If you request a Spot * placement score for Availability Zones, a high score assumes that your fleet * request will be configured to use a single Availability Zone and the * capacity-optimized allocation strategy.

Different
 * Regions or Availability Zones might return the same score.

The * Spot placement score serves as a recommendation only. No score guarantees that * your Spot request will be fully or partially fulfilled.

*/ inline GetSpotPlacementScoresResponse& WithSpotPlacementScores(const Aws::Vector& value) { SetSpotPlacementScores(value); return *this;} /** *

The Spot placement score for the top 10 Regions or Availability Zones, scored * on a scale from 1 to 10. Each score
 reflects how likely it is that each * Region or Availability Zone will succeed at fulfilling the specified target * capacity
 at the time of the Spot placement score request. A score * of 10 means that your Spot capacity request is highly likely to * succeed in that Region or Availability Zone.

If you request a Spot * placement score for Regions, a high score assumes that your fleet request will * be configured to use all Availability Zones and the * capacity-optimized allocation strategy. If you request a Spot * placement score for Availability Zones, a high score assumes that your fleet * request will be configured to use a single Availability Zone and the * capacity-optimized allocation strategy.

Different
 * Regions or Availability Zones might return the same score.

The * Spot placement score serves as a recommendation only. No score guarantees that * your Spot request will be fully or partially fulfilled.

*/ inline GetSpotPlacementScoresResponse& WithSpotPlacementScores(Aws::Vector&& value) { SetSpotPlacementScores(std::move(value)); return *this;} /** *

The Spot placement score for the top 10 Regions or Availability Zones, scored * on a scale from 1 to 10. Each score
 reflects how likely it is that each * Region or Availability Zone will succeed at fulfilling the specified target * capacity
 at the time of the Spot placement score request. A score * of 10 means that your Spot capacity request is highly likely to * succeed in that Region or Availability Zone.

If you request a Spot * placement score for Regions, a high score assumes that your fleet request will * be configured to use all Availability Zones and the * capacity-optimized allocation strategy. If you request a Spot * placement score for Availability Zones, a high score assumes that your fleet * request will be configured to use a single Availability Zone and the * capacity-optimized allocation strategy.

Different
 * Regions or Availability Zones might return the same score.

The * Spot placement score serves as a recommendation only. No score guarantees that * your Spot request will be fully or partially fulfilled.

*/ inline GetSpotPlacementScoresResponse& AddSpotPlacementScores(const SpotPlacementScore& value) { m_spotPlacementScores.push_back(value); return *this; } /** *

The Spot placement score for the top 10 Regions or Availability Zones, scored * on a scale from 1 to 10. Each score
 reflects how likely it is that each * Region or Availability Zone will succeed at fulfilling the specified target * capacity
 at the time of the Spot placement score request. A score * of 10 means that your Spot capacity request is highly likely to * succeed in that Region or Availability Zone.

If you request a Spot * placement score for Regions, a high score assumes that your fleet request will * be configured to use all Availability Zones and the * capacity-optimized allocation strategy. If you request a Spot * placement score for Availability Zones, a high score assumes that your fleet * request will be configured to use a single Availability Zone and the * capacity-optimized allocation strategy.

Different
 * Regions or Availability Zones might return the same score.

The * Spot placement score serves as a recommendation only. No score guarantees that * your Spot request will be fully or partially fulfilled.

*/ inline GetSpotPlacementScoresResponse& AddSpotPlacementScores(SpotPlacementScore&& value) { m_spotPlacementScores.push_back(std::move(value)); return *this; } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline GetSpotPlacementScoresResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline GetSpotPlacementScoresResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline GetSpotPlacementScoresResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline GetSpotPlacementScoresResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetSpotPlacementScoresResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_spotPlacementScores; Aws::String m_nextToken; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws