AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
TrafficRoute.h
Go to the documentation of this file.
1
6#pragma once
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:
41
42
48 inline const Aws::Vector<Aws::String>& GetListenerArns() const{ return m_listenerArns; }
49
55 inline bool ListenerArnsHasBeenSet() const { return m_listenerArnsHasBeenSet; }
56
62 inline void SetListenerArns(const Aws::Vector<Aws::String>& value) { m_listenerArnsHasBeenSet = true; m_listenerArns = value; }
63
69 inline void SetListenerArns(Aws::Vector<Aws::String>&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns = std::move(value); }
70
76 inline TrafficRoute& WithListenerArns(const Aws::Vector<Aws::String>& value) { SetListenerArns(value); return *this;}
77
83 inline TrafficRoute& WithListenerArns(Aws::Vector<Aws::String>&& value) { SetListenerArns(std::move(value)); return *this;}
84
90 inline TrafficRoute& AddListenerArns(const Aws::String& value) { m_listenerArnsHasBeenSet = true; m_listenerArns.push_back(value); return *this; }
91
97 inline TrafficRoute& AddListenerArns(Aws::String&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns.push_back(std::move(value)); return *this; }
98
104 inline TrafficRoute& AddListenerArns(const char* value) { m_listenerArnsHasBeenSet = true; m_listenerArns.push_back(value); return *this; }
105
106 private:
107
108 Aws::Vector<Aws::String> m_listenerArns;
109 bool m_listenerArnsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CodeDeploy
114} // namespace Aws
#define AWS_CODEDEPLOY_API
TrafficRoute & AddListenerArns(Aws::String &&value)
Definition: TrafficRoute.h:97
TrafficRoute & WithListenerArns(const Aws::Vector< Aws::String > &value)
Definition: TrafficRoute.h:76
void SetListenerArns(const Aws::Vector< Aws::String > &value)
Definition: TrafficRoute.h:62
TrafficRoute & AddListenerArns(const Aws::String &value)
Definition: TrafficRoute.h:90
AWS_CODEDEPLOY_API TrafficRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetListenerArns() const
Definition: TrafficRoute.h:48
void SetListenerArns(Aws::Vector< Aws::String > &&value)
Definition: TrafficRoute.h:69
TrafficRoute & AddListenerArns(const char *value)
Definition: TrafficRoute.h:104
AWS_CODEDEPLOY_API TrafficRoute(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
TrafficRoute & WithListenerArns(Aws::Vector< Aws::String > &&value)
Definition: TrafficRoute.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector