AWS SDK for C++  1.9.19
AWS SDK for C++
AliasRoutingConfiguration.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 Lambda
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline const Aws::Map<Aws::String, double>& GetAdditionalVersionWeights() const{ return m_additionalVersionWeights; }
47 
51  inline bool AdditionalVersionWeightsHasBeenSet() const { return m_additionalVersionWeightsHasBeenSet; }
52 
56  inline void SetAdditionalVersionWeights(const Aws::Map<Aws::String, double>& value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights = value; }
57 
61  inline void SetAdditionalVersionWeights(Aws::Map<Aws::String, double>&& value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights = std::move(value); }
62 
66  inline AliasRoutingConfiguration& WithAdditionalVersionWeights(const Aws::Map<Aws::String, double>& value) { SetAdditionalVersionWeights(value); return *this;}
67 
71  inline AliasRoutingConfiguration& WithAdditionalVersionWeights(Aws::Map<Aws::String, double>&& value) { SetAdditionalVersionWeights(std::move(value)); return *this;}
72 
76  inline AliasRoutingConfiguration& AddAdditionalVersionWeights(const Aws::String& key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(key, value); return *this; }
77 
81  inline AliasRoutingConfiguration& AddAdditionalVersionWeights(Aws::String&& key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(std::move(key), value); return *this; }
82 
86  inline AliasRoutingConfiguration& AddAdditionalVersionWeights(const char* key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(key, value); return *this; }
87 
88  private:
89 
90  Aws::Map<Aws::String, double> m_additionalVersionWeights;
91  bool m_additionalVersionWeightsHasBeenSet;
92  };
93 
94 } // namespace Model
95 } // namespace Lambda
96 } // namespace Aws
Aws::Lambda::Model::AliasRoutingConfiguration
Definition: AliasRoutingConfiguration.h:35
Aws::Lambda::Model::AliasRoutingConfiguration::operator=
AliasRoutingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::AliasRoutingConfiguration::GetAdditionalVersionWeights
const Aws::Map< Aws::String, double > & GetAdditionalVersionWeights() const
Definition: AliasRoutingConfiguration.h:46
Aws::Lambda::Model::AliasRoutingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::AliasRoutingConfiguration::WithAdditionalVersionWeights
AliasRoutingConfiguration & WithAdditionalVersionWeights(Aws::Map< Aws::String, double > &&value)
Definition: AliasRoutingConfiguration.h:71
Aws::Lambda::Model::AliasRoutingConfiguration::WithAdditionalVersionWeights
AliasRoutingConfiguration & WithAdditionalVersionWeights(const Aws::Map< Aws::String, double > &value)
Definition: AliasRoutingConfiguration.h:66
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::AliasRoutingConfiguration::SetAdditionalVersionWeights
void SetAdditionalVersionWeights(const Aws::Map< Aws::String, double > &value)
Definition: AliasRoutingConfiguration.h:56
Aws::Lambda::Model::AliasRoutingConfiguration::AliasRoutingConfiguration
AliasRoutingConfiguration()
Aws::Lambda::Model::AliasRoutingConfiguration::SetAdditionalVersionWeights
void SetAdditionalVersionWeights(Aws::Map< Aws::String, double > &&value)
Definition: AliasRoutingConfiguration.h:61
Aws::Lambda::Model::AliasRoutingConfiguration::AdditionalVersionWeightsHasBeenSet
bool AdditionalVersionWeightsHasBeenSet() const
Definition: AliasRoutingConfiguration.h:51
Aws::Lambda::Model::AliasRoutingConfiguration::AliasRoutingConfiguration
AliasRoutingConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Lambda::Model::AliasRoutingConfiguration::AddAdditionalVersionWeights
AliasRoutingConfiguration & AddAdditionalVersionWeights(const char *key, double value)
Definition: AliasRoutingConfiguration.h:86
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::AliasRoutingConfiguration::AddAdditionalVersionWeights
AliasRoutingConfiguration & AddAdditionalVersionWeights(const Aws::String &key, double value)
Definition: AliasRoutingConfiguration.h:76
AWSMap.h
Aws::Lambda::Model::AliasRoutingConfiguration::AddAdditionalVersionWeights
AliasRoutingConfiguration & AddAdditionalVersionWeights(Aws::String &&key, double value)
Definition: AliasRoutingConfiguration.h:81
Lambda_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19