AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrafficRoute.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeDeploy {
21namespace Model {
22
31 public:
32 AWS_CODEDEPLOY_API TrafficRoute() = default;
33 AWS_CODEDEPLOY_API TrafficRoute(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEDEPLOY_API TrafficRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Aws::String>& GetListenerArns() const { return m_listenerArns; }
44 inline bool ListenerArnsHasBeenSet() const { return m_listenerArnsHasBeenSet; }
45 template <typename ListenerArnsT = Aws::Vector<Aws::String>>
46 void SetListenerArns(ListenerArnsT&& value) {
47 m_listenerArnsHasBeenSet = true;
48 m_listenerArns = std::forward<ListenerArnsT>(value);
49 }
50 template <typename ListenerArnsT = Aws::Vector<Aws::String>>
51 TrafficRoute& WithListenerArns(ListenerArnsT&& value) {
52 SetListenerArns(std::forward<ListenerArnsT>(value));
53 return *this;
54 }
55 template <typename ListenerArnsT = Aws::String>
56 TrafficRoute& AddListenerArns(ListenerArnsT&& value) {
57 m_listenerArnsHasBeenSet = true;
58 m_listenerArns.emplace_back(std::forward<ListenerArnsT>(value));
59 return *this;
60 }
62 private:
63 Aws::Vector<Aws::String> m_listenerArns;
64 bool m_listenerArnsHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace CodeDeploy
69} // 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