AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetGroupPairInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codedeploy/model/TrafficRoute.h>
10#include <aws/codedeploy/model/TargetGroupInfo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeDeploy
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CODEDEPLOY_API TargetGroupPairInfo();
39 AWS_CODEDEPLOY_API TargetGroupPairInfo(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<TargetGroupInfo>& GetTargetGroups() const{ return m_targetGroups; }
51 inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; }
52 inline void SetTargetGroups(const Aws::Vector<TargetGroupInfo>& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = value; }
53 inline void SetTargetGroups(Aws::Vector<TargetGroupInfo>&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::move(value); }
55 inline TargetGroupPairInfo& WithTargetGroups(Aws::Vector<TargetGroupInfo>&& value) { SetTargetGroups(std::move(value)); return *this;}
56 inline TargetGroupPairInfo& AddTargetGroups(const TargetGroupInfo& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(value); return *this; }
57 inline TargetGroupPairInfo& AddTargetGroups(TargetGroupInfo&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(std::move(value)); return *this; }
59
61
65 inline const TrafficRoute& GetProdTrafficRoute() const{ return m_prodTrafficRoute; }
66 inline bool ProdTrafficRouteHasBeenSet() const { return m_prodTrafficRouteHasBeenSet; }
67 inline void SetProdTrafficRoute(const TrafficRoute& value) { m_prodTrafficRouteHasBeenSet = true; m_prodTrafficRoute = value; }
68 inline void SetProdTrafficRoute(TrafficRoute&& value) { m_prodTrafficRouteHasBeenSet = true; m_prodTrafficRoute = std::move(value); }
69 inline TargetGroupPairInfo& WithProdTrafficRoute(const TrafficRoute& value) { SetProdTrafficRoute(value); return *this;}
70 inline TargetGroupPairInfo& WithProdTrafficRoute(TrafficRoute&& value) { SetProdTrafficRoute(std::move(value)); return *this;}
72
74
79 inline const TrafficRoute& GetTestTrafficRoute() const{ return m_testTrafficRoute; }
80 inline bool TestTrafficRouteHasBeenSet() const { return m_testTrafficRouteHasBeenSet; }
81 inline void SetTestTrafficRoute(const TrafficRoute& value) { m_testTrafficRouteHasBeenSet = true; m_testTrafficRoute = value; }
82 inline void SetTestTrafficRoute(TrafficRoute&& value) { m_testTrafficRouteHasBeenSet = true; m_testTrafficRoute = std::move(value); }
83 inline TargetGroupPairInfo& WithTestTrafficRoute(const TrafficRoute& value) { SetTestTrafficRoute(value); return *this;}
84 inline TargetGroupPairInfo& WithTestTrafficRoute(TrafficRoute&& value) { SetTestTrafficRoute(std::move(value)); return *this;}
86 private:
87
88 Aws::Vector<TargetGroupInfo> m_targetGroups;
89 bool m_targetGroupsHasBeenSet = false;
90
91 TrafficRoute m_prodTrafficRoute;
92 bool m_prodTrafficRouteHasBeenSet = false;
93
94 TrafficRoute m_testTrafficRoute;
95 bool m_testTrafficRouteHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CodeDeploy
100} // namespace Aws
TargetGroupPairInfo & AddTargetGroups(TargetGroupInfo &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const TrafficRoute & GetProdTrafficRoute() const
AWS_CODEDEPLOY_API TargetGroupPairInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetGroupPairInfo & WithProdTrafficRoute(TrafficRoute &&value)
AWS_CODEDEPLOY_API TargetGroupPairInfo(Aws::Utils::Json::JsonView jsonValue)
TargetGroupPairInfo & WithTestTrafficRoute(const TrafficRoute &value)
TargetGroupPairInfo & WithTestTrafficRoute(TrafficRoute &&value)
TargetGroupPairInfo & AddTargetGroups(const TargetGroupInfo &value)
TargetGroupPairInfo & WithTargetGroups(const Aws::Vector< TargetGroupInfo > &value)
void SetTargetGroups(Aws::Vector< TargetGroupInfo > &&value)
TargetGroupPairInfo & WithProdTrafficRoute(const TrafficRoute &value)
void SetTargetGroups(const Aws::Vector< TargetGroupInfo > &value)
const Aws::Vector< TargetGroupInfo > & GetTargetGroups() const
void SetTestTrafficRoute(const TrafficRoute &value)
TargetGroupPairInfo & WithTargetGroups(Aws::Vector< TargetGroupInfo > &&value)
const TrafficRoute & GetTestTrafficRoute() const
void SetProdTrafficRoute(const TrafficRoute &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue