AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetInstances.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/EC2TagSet.h>
10#include <aws/codedeploy/model/EC2TagFilter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeDeploy
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODEDEPLOY_API TargetInstances();
39 AWS_CODEDEPLOY_API TargetInstances(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<EC2TagFilter>& GetTagFilters() const{ return m_tagFilters; }
51 inline bool TagFiltersHasBeenSet() const { return m_tagFiltersHasBeenSet; }
52 inline void SetTagFilters(const Aws::Vector<EC2TagFilter>& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = value; }
53 inline void SetTagFilters(Aws::Vector<EC2TagFilter>&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = std::move(value); }
54 inline TargetInstances& WithTagFilters(const Aws::Vector<EC2TagFilter>& value) { SetTagFilters(value); return *this;}
55 inline TargetInstances& WithTagFilters(Aws::Vector<EC2TagFilter>&& value) { SetTagFilters(std::move(value)); return *this;}
56 inline TargetInstances& AddTagFilters(const EC2TagFilter& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(value); return *this; }
57 inline TargetInstances& AddTagFilters(EC2TagFilter&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(std::move(value)); return *this; }
59
61
65 inline const Aws::Vector<Aws::String>& GetAutoScalingGroups() const{ return m_autoScalingGroups; }
66 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
67 inline void SetAutoScalingGroups(const Aws::Vector<Aws::String>& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = value; }
68 inline void SetAutoScalingGroups(Aws::Vector<Aws::String>&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = std::move(value); }
70 inline TargetInstances& WithAutoScalingGroups(Aws::Vector<Aws::String>&& value) { SetAutoScalingGroups(std::move(value)); return *this;}
71 inline TargetInstances& AddAutoScalingGroups(const Aws::String& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(value); return *this; }
72 inline TargetInstances& AddAutoScalingGroups(Aws::String&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(std::move(value)); return *this; }
73 inline TargetInstances& AddAutoScalingGroups(const char* value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(value); return *this; }
75
77
83 inline const EC2TagSet& GetEc2TagSet() const{ return m_ec2TagSet; }
84 inline bool Ec2TagSetHasBeenSet() const { return m_ec2TagSetHasBeenSet; }
85 inline void SetEc2TagSet(const EC2TagSet& value) { m_ec2TagSetHasBeenSet = true; m_ec2TagSet = value; }
86 inline void SetEc2TagSet(EC2TagSet&& value) { m_ec2TagSetHasBeenSet = true; m_ec2TagSet = std::move(value); }
87 inline TargetInstances& WithEc2TagSet(const EC2TagSet& value) { SetEc2TagSet(value); return *this;}
88 inline TargetInstances& WithEc2TagSet(EC2TagSet&& value) { SetEc2TagSet(std::move(value)); return *this;}
90 private:
91
92 Aws::Vector<EC2TagFilter> m_tagFilters;
93 bool m_tagFiltersHasBeenSet = false;
94
95 Aws::Vector<Aws::String> m_autoScalingGroups;
96 bool m_autoScalingGroupsHasBeenSet = false;
97
98 EC2TagSet m_ec2TagSet;
99 bool m_ec2TagSetHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodeDeploy
104} // namespace Aws
TargetInstances & AddAutoScalingGroups(Aws::String &&value)
void SetTagFilters(const Aws::Vector< EC2TagFilter > &value)
const Aws::Vector< EC2TagFilter > & GetTagFilters() const
void SetAutoScalingGroups(Aws::Vector< Aws::String > &&value)
const EC2TagSet & GetEc2TagSet() const
AWS_CODEDEPLOY_API TargetInstances(Aws::Utils::Json::JsonView jsonValue)
void SetAutoScalingGroups(const Aws::Vector< Aws::String > &value)
void SetTagFilters(Aws::Vector< EC2TagFilter > &&value)
TargetInstances & WithTagFilters(const Aws::Vector< EC2TagFilter > &value)
TargetInstances & WithEc2TagSet(EC2TagSet &&value)
TargetInstances & WithEc2TagSet(const EC2TagSet &value)
TargetInstances & AddTagFilters(EC2TagFilter &&value)
TargetInstances & AddAutoScalingGroups(const char *value)
void SetEc2TagSet(const EC2TagSet &value)
TargetInstances & AddAutoScalingGroups(const Aws::String &value)
TargetInstances & WithAutoScalingGroups(const Aws::Vector< Aws::String > &value)
TargetInstances & WithAutoScalingGroups(Aws::Vector< Aws::String > &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAutoScalingGroups() const
TargetInstances & WithTagFilters(Aws::Vector< EC2TagFilter > &&value)
AWS_CODEDEPLOY_API TargetInstances & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetInstances & AddTagFilters(const EC2TagFilter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue