AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AppInputSource.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/EksSourceClusterNamespace.h>
9#include <aws/resiliencehub/model/ResourceMappingType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/resiliencehub/model/TerraformSource.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 ResilienceHub
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_RESILIENCEHUB_API AppInputSource();
39 AWS_RESILIENCEHUB_API AppInputSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESILIENCEHUB_API AppInputSource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const EksSourceClusterNamespace& GetEksSourceClusterNamespace() const{ return m_eksSourceClusterNamespace; }
49 inline bool EksSourceClusterNamespaceHasBeenSet() const { return m_eksSourceClusterNamespaceHasBeenSet; }
50 inline void SetEksSourceClusterNamespace(const EksSourceClusterNamespace& value) { m_eksSourceClusterNamespaceHasBeenSet = true; m_eksSourceClusterNamespace = value; }
51 inline void SetEksSourceClusterNamespace(EksSourceClusterNamespace&& value) { m_eksSourceClusterNamespaceHasBeenSet = true; m_eksSourceClusterNamespace = std::move(value); }
55
57
60 inline const ResourceMappingType& GetImportType() const{ return m_importType; }
61 inline bool ImportTypeHasBeenSet() const { return m_importTypeHasBeenSet; }
62 inline void SetImportType(const ResourceMappingType& value) { m_importTypeHasBeenSet = true; m_importType = value; }
63 inline void SetImportType(ResourceMappingType&& value) { m_importTypeHasBeenSet = true; m_importType = std::move(value); }
64 inline AppInputSource& WithImportType(const ResourceMappingType& value) { SetImportType(value); return *this;}
65 inline AppInputSource& WithImportType(ResourceMappingType&& value) { SetImportType(std::move(value)); return *this;}
67
69
72 inline int GetResourceCount() const{ return m_resourceCount; }
73 inline bool ResourceCountHasBeenSet() const { return m_resourceCountHasBeenSet; }
74 inline void SetResourceCount(int value) { m_resourceCountHasBeenSet = true; m_resourceCount = value; }
75 inline AppInputSource& WithResourceCount(int value) { SetResourceCount(value); return *this;}
77
79
86 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
87 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
88 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
89 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
90 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
91 inline AppInputSource& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
92 inline AppInputSource& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
93 inline AppInputSource& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
95
97
100 inline const Aws::String& GetSourceName() const{ return m_sourceName; }
101 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
102 inline void SetSourceName(const Aws::String& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
103 inline void SetSourceName(Aws::String&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
104 inline void SetSourceName(const char* value) { m_sourceNameHasBeenSet = true; m_sourceName.assign(value); }
105 inline AppInputSource& WithSourceName(const Aws::String& value) { SetSourceName(value); return *this;}
106 inline AppInputSource& WithSourceName(Aws::String&& value) { SetSourceName(std::move(value)); return *this;}
107 inline AppInputSource& WithSourceName(const char* value) { SetSourceName(value); return *this;}
109
111
114 inline const TerraformSource& GetTerraformSource() const{ return m_terraformSource; }
115 inline bool TerraformSourceHasBeenSet() const { return m_terraformSourceHasBeenSet; }
116 inline void SetTerraformSource(const TerraformSource& value) { m_terraformSourceHasBeenSet = true; m_terraformSource = value; }
117 inline void SetTerraformSource(TerraformSource&& value) { m_terraformSourceHasBeenSet = true; m_terraformSource = std::move(value); }
118 inline AppInputSource& WithTerraformSource(const TerraformSource& value) { SetTerraformSource(value); return *this;}
119 inline AppInputSource& WithTerraformSource(TerraformSource&& value) { SetTerraformSource(std::move(value)); return *this;}
121 private:
122
123 EksSourceClusterNamespace m_eksSourceClusterNamespace;
124 bool m_eksSourceClusterNamespaceHasBeenSet = false;
125
126 ResourceMappingType m_importType;
127 bool m_importTypeHasBeenSet = false;
128
129 int m_resourceCount;
130 bool m_resourceCountHasBeenSet = false;
131
132 Aws::String m_sourceArn;
133 bool m_sourceArnHasBeenSet = false;
134
135 Aws::String m_sourceName;
136 bool m_sourceNameHasBeenSet = false;
137
138 TerraformSource m_terraformSource;
139 bool m_terraformSourceHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace ResilienceHub
144} // namespace Aws
AWS_RESILIENCEHUB_API AppInputSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceArn() const
void SetImportType(ResourceMappingType &&value)
AppInputSource & WithEksSourceClusterNamespace(const EksSourceClusterNamespace &value)
const Aws::String & GetSourceName() const
AppInputSource & WithSourceArn(const char *value)
AppInputSource & WithTerraformSource(const TerraformSource &value)
AppInputSource & WithSourceArn(const Aws::String &value)
AppInputSource & WithResourceCount(int value)
const TerraformSource & GetTerraformSource() const
AppInputSource & WithEksSourceClusterNamespace(EksSourceClusterNamespace &&value)
AppInputSource & WithImportType(const ResourceMappingType &value)
AppInputSource & WithSourceName(Aws::String &&value)
AppInputSource & WithSourceName(const Aws::String &value)
AWS_RESILIENCEHUB_API AppInputSource()
AWS_RESILIENCEHUB_API AppInputSource(Aws::Utils::Json::JsonView jsonValue)
AppInputSource & WithSourceArn(Aws::String &&value)
AppInputSource & WithSourceName(const char *value)
void SetEksSourceClusterNamespace(EksSourceClusterNamespace &&value)
const ResourceMappingType & GetImportType() const
AppInputSource & WithImportType(ResourceMappingType &&value)
void SetEksSourceClusterNamespace(const EksSourceClusterNamespace &value)
void SetTerraformSource(TerraformSource &&value)
const EksSourceClusterNamespace & GetEksSourceClusterNamespace() const
void SetImportType(const ResourceMappingType &value)
void SetSourceArn(const Aws::String &value)
AppInputSource & WithTerraformSource(TerraformSource &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceName(const Aws::String &value)
void SetTerraformSource(const TerraformSource &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue