AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetConfigurationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/Ec2ConfigurationState.h>
11#include <aws/inspector2/model/EcrConfigurationState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2 {
25namespace Model {
27 public:
28 AWS_INSPECTOR2_API GetConfigurationResult() = default;
31
33
37 inline const EcrConfigurationState& GetEcrConfiguration() const { return m_ecrConfiguration; }
38 template <typename EcrConfigurationT = EcrConfigurationState>
39 void SetEcrConfiguration(EcrConfigurationT&& value) {
40 m_ecrConfigurationHasBeenSet = true;
41 m_ecrConfiguration = std::forward<EcrConfigurationT>(value);
42 }
43 template <typename EcrConfigurationT = EcrConfigurationState>
44 GetConfigurationResult& WithEcrConfiguration(EcrConfigurationT&& value) {
45 SetEcrConfiguration(std::forward<EcrConfigurationT>(value));
46 return *this;
47 }
49
51
55 inline const Ec2ConfigurationState& GetEc2Configuration() const { return m_ec2Configuration; }
56 template <typename Ec2ConfigurationT = Ec2ConfigurationState>
57 void SetEc2Configuration(Ec2ConfigurationT&& value) {
58 m_ec2ConfigurationHasBeenSet = true;
59 m_ec2Configuration = std::forward<Ec2ConfigurationT>(value);
60 }
61 template <typename Ec2ConfigurationT = Ec2ConfigurationState>
62 GetConfigurationResult& WithEc2Configuration(Ec2ConfigurationT&& value) {
63 SetEc2Configuration(std::forward<Ec2ConfigurationT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 EcrConfigurationState m_ecrConfiguration;
86
87 Ec2ConfigurationState m_ec2Configuration;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_ecrConfigurationHasBeenSet = false;
92 bool m_ec2ConfigurationHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Inspector2
98} // namespace Aws
AWS_INSPECTOR2_API GetConfigurationResult()=default
AWS_INSPECTOR2_API GetConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_INSPECTOR2_API GetConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const EcrConfigurationState & GetEcrConfiguration() const
GetConfigurationResult & WithEc2Configuration(Ec2ConfigurationT &&value)
const Ec2ConfigurationState & GetEc2Configuration() const
GetConfigurationResult & WithRequestId(RequestIdT &&value)
GetConfigurationResult & WithEcrConfiguration(EcrConfigurationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue