AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ComponentVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/groundstation/GroundStation_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GroundStation {
21namespace Model {
22
29 public:
30 AWS_GROUNDSTATION_API ComponentVersion() = default;
31 AWS_GROUNDSTATION_API ComponentVersion(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GROUNDSTATION_API ComponentVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetComponentType() const { return m_componentType; }
40 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
41 template <typename ComponentTypeT = Aws::String>
42 void SetComponentType(ComponentTypeT&& value) {
43 m_componentTypeHasBeenSet = true;
44 m_componentType = std::forward<ComponentTypeT>(value);
45 }
46 template <typename ComponentTypeT = Aws::String>
47 ComponentVersion& WithComponentType(ComponentTypeT&& value) {
48 SetComponentType(std::forward<ComponentTypeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
58 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
59 template <typename VersionsT = Aws::Vector<Aws::String>>
60 void SetVersions(VersionsT&& value) {
61 m_versionsHasBeenSet = true;
62 m_versions = std::forward<VersionsT>(value);
63 }
64 template <typename VersionsT = Aws::Vector<Aws::String>>
65 ComponentVersion& WithVersions(VersionsT&& value) {
66 SetVersions(std::forward<VersionsT>(value));
67 return *this;
68 }
69 template <typename VersionsT = Aws::String>
70 ComponentVersion& AddVersions(VersionsT&& value) {
71 m_versionsHasBeenSet = true;
72 m_versions.emplace_back(std::forward<VersionsT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_componentType;
78
79 Aws::Vector<Aws::String> m_versions;
80 bool m_componentTypeHasBeenSet = false;
81 bool m_versionsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GroundStation
86} // namespace Aws
void SetComponentType(ComponentTypeT &&value)
const Aws::Vector< Aws::String > & GetVersions() const
const Aws::String & GetComponentType() const
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GROUNDSTATION_API ComponentVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API ComponentVersion()=default
ComponentVersion & WithVersions(VersionsT &&value)
AWS_GROUNDSTATION_API ComponentVersion(Aws::Utils::Json::JsonView jsonValue)
ComponentVersion & AddVersions(VersionsT &&value)
ComponentVersion & WithComponentType(ComponentTypeT &&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