AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TrafficRoute.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeDeploy
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CODEDEPLOY_API TrafficRoute() = default;
38 AWS_CODEDEPLOY_API TrafficRoute(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API TrafficRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<Aws::String>& GetListenerArns() const { return m_listenerArns; }
50 inline bool ListenerArnsHasBeenSet() const { return m_listenerArnsHasBeenSet; }
51 template<typename ListenerArnsT = Aws::Vector<Aws::String>>
52 void SetListenerArns(ListenerArnsT&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns = std::forward<ListenerArnsT>(value); }
53 template<typename ListenerArnsT = Aws::Vector<Aws::String>>
54 TrafficRoute& WithListenerArns(ListenerArnsT&& value) { SetListenerArns(std::forward<ListenerArnsT>(value)); return *this;}
55 template<typename ListenerArnsT = Aws::String>
56 TrafficRoute& AddListenerArns(ListenerArnsT&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns.emplace_back(std::forward<ListenerArnsT>(value)); return *this; }
58 private:
59
60 Aws::Vector<Aws::String> m_listenerArns;
61 bool m_listenerArnsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace CodeDeploy
66} // namespace Aws
AWS_CODEDEPLOY_API TrafficRoute()=default
TrafficRoute & WithListenerArns(ListenerArnsT &&value)
void SetListenerArns(ListenerArnsT &&value)
AWS_CODEDEPLOY_API TrafficRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetListenerArns() const
TrafficRoute & AddListenerArns(ListenerArnsT &&value)
AWS_CODEDEPLOY_API TrafficRoute(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue