AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SoftwareAssociations.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/ErrorDetails.h>
9#include <aws/appstream/model/SoftwareDeploymentStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppStream {
23namespace Model {
24
32 public:
33 AWS_APPSTREAM_API SoftwareAssociations() = default;
36 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
67 inline const Aws::String& GetSoftwareName() const { return m_softwareName; }
68 inline bool SoftwareNameHasBeenSet() const { return m_softwareNameHasBeenSet; }
69 template <typename SoftwareNameT = Aws::String>
70 void SetSoftwareName(SoftwareNameT&& value) {
71 m_softwareNameHasBeenSet = true;
72 m_softwareName = std::forward<SoftwareNameT>(value);
73 }
74 template <typename SoftwareNameT = Aws::String>
75 SoftwareAssociations& WithSoftwareName(SoftwareNameT&& value) {
76 SetSoftwareName(std::forward<SoftwareNameT>(value));
77 return *this;
78 }
80
82
85 inline SoftwareDeploymentStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 m_statusHasBeenSet = true;
89 m_status = value;
90 }
92 SetStatus(value);
93 return *this;
94 }
96
98
102 inline const Aws::Vector<ErrorDetails>& GetDeploymentError() const { return m_deploymentError; }
103 inline bool DeploymentErrorHasBeenSet() const { return m_deploymentErrorHasBeenSet; }
104 template <typename DeploymentErrorT = Aws::Vector<ErrorDetails>>
105 void SetDeploymentError(DeploymentErrorT&& value) {
106 m_deploymentErrorHasBeenSet = true;
107 m_deploymentError = std::forward<DeploymentErrorT>(value);
108 }
109 template <typename DeploymentErrorT = Aws::Vector<ErrorDetails>>
110 SoftwareAssociations& WithDeploymentError(DeploymentErrorT&& value) {
111 SetDeploymentError(std::forward<DeploymentErrorT>(value));
112 return *this;
113 }
114 template <typename DeploymentErrorT = ErrorDetails>
115 SoftwareAssociations& AddDeploymentError(DeploymentErrorT&& value) {
116 m_deploymentErrorHasBeenSet = true;
117 m_deploymentError.emplace_back(std::forward<DeploymentErrorT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_softwareName;
123
125
126 Aws::Vector<ErrorDetails> m_deploymentError;
127 bool m_softwareNameHasBeenSet = false;
128 bool m_statusHasBeenSet = false;
129 bool m_deploymentErrorHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace AppStream
134} // namespace Aws
SoftwareDeploymentStatus GetStatus() const
void SetStatus(SoftwareDeploymentStatus value)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSTREAM_API SoftwareAssociations()=default
SoftwareAssociations & WithSoftwareName(SoftwareNameT &&value)
SoftwareAssociations & AddDeploymentError(DeploymentErrorT &&value)
AWS_APPSTREAM_API SoftwareAssociations(Aws::Utils::Json::JsonView jsonValue)
SoftwareAssociations & WithDeploymentError(DeploymentErrorT &&value)
SoftwareAssociations & WithStatus(SoftwareDeploymentStatus value)
AWS_APPSTREAM_API SoftwareAssociations & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ErrorDetails > & GetDeploymentError() const
void SetDeploymentError(DeploymentErrorT &&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