AWS SDK for C++

AWS SDK for C++ Version 1.11.939

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#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CodeDeploy {
21namespace Model {
22
31 public:
32 AWS_CODEDEPLOY_API TrafficRoute() = default;
33 AWS_CODEDEPLOY_API TrafficRoute(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CODEDEPLOY_API TrafficRoute& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API TrafficRoute()=default
TrafficRoute & WithListenerArns(ListenerArnsT &&value)
void SetListenerArns(ListenerArnsT &&value)
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Vector< Aws::String > & GetListenerArns() const
AWS_CODEDEPLOY_API TrafficRoute & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TrafficRoute & AddListenerArns(ListenerArnsT &&value)
std::vector< T, Aws::Allocator< T > > Vector