AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
UpdateConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/Ec2Configuration.h>
11#include <aws/inspector2/model/EcrConfiguration.h>
12#include <aws/inspector2/model/UpdateConfigurationInheritance.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Inspector2 {
18namespace Model {
19
23 public:
24 AWS_INSPECTOR2_API UpdateConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateConfiguration"; }
31
32 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
61 inline const EcrConfiguration& GetEcrConfiguration() const { return m_ecrConfiguration; }
62 inline bool EcrConfigurationHasBeenSet() const { return m_ecrConfigurationHasBeenSet; }
63 template <typename EcrConfigurationT = EcrConfiguration>
64 void SetEcrConfiguration(EcrConfigurationT&& value) {
65 m_ecrConfigurationHasBeenSet = true;
66 m_ecrConfiguration = std::forward<EcrConfigurationT>(value);
67 }
68 template <typename EcrConfigurationT = EcrConfiguration>
70 SetEcrConfiguration(std::forward<EcrConfigurationT>(value));
71 return *this;
72 }
74
76
80 inline const Ec2Configuration& GetEc2Configuration() const { return m_ec2Configuration; }
81 inline bool Ec2ConfigurationHasBeenSet() const { return m_ec2ConfigurationHasBeenSet; }
82 template <typename Ec2ConfigurationT = Ec2Configuration>
83 void SetEc2Configuration(Ec2ConfigurationT&& value) {
84 m_ec2ConfigurationHasBeenSet = true;
85 m_ec2Configuration = std::forward<Ec2ConfigurationT>(value);
86 }
87 template <typename Ec2ConfigurationT = Ec2Configuration>
89 SetEc2Configuration(std::forward<Ec2ConfigurationT>(value));
90 return *this;
91 }
93
95
105 inline const UpdateConfigurationInheritance& GetUpdateConfigurationInheritance() const { return m_updateConfigurationInheritance; }
106 inline bool UpdateConfigurationInheritanceHasBeenSet() const { return m_updateConfigurationInheritanceHasBeenSet; }
107 template <typename UpdateConfigurationInheritanceT = UpdateConfigurationInheritance>
108 void SetUpdateConfigurationInheritance(UpdateConfigurationInheritanceT&& value) {
109 m_updateConfigurationInheritanceHasBeenSet = true;
110 m_updateConfigurationInheritance = std::forward<UpdateConfigurationInheritanceT>(value);
111 }
112 template <typename UpdateConfigurationInheritanceT = UpdateConfigurationInheritance>
113 UpdateConfigurationRequest& WithUpdateConfigurationInheritance(UpdateConfigurationInheritanceT&& value) {
114 SetUpdateConfigurationInheritance(std::forward<UpdateConfigurationInheritanceT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_accountId;
120
121 EcrConfiguration m_ecrConfiguration;
122
123 Ec2Configuration m_ec2Configuration;
124
125 UpdateConfigurationInheritance m_updateConfigurationInheritance;
126 bool m_accountIdHasBeenSet = false;
127 bool m_ecrConfigurationHasBeenSet = false;
128 bool m_ec2ConfigurationHasBeenSet = false;
129 bool m_updateConfigurationInheritanceHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Inspector2
134} // namespace Aws
AWS_INSPECTOR2_API UpdateConfigurationRequest()=default
UpdateConfigurationRequest & WithEcrConfiguration(EcrConfigurationT &&value)
void SetUpdateConfigurationInheritance(UpdateConfigurationInheritanceT &&value)
virtual const char * GetServiceRequestName() const override
UpdateConfigurationRequest & WithEc2Configuration(Ec2ConfigurationT &&value)
const UpdateConfigurationInheritance & GetUpdateConfigurationInheritance() const
UpdateConfigurationRequest & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
UpdateConfigurationRequest & WithUpdateConfigurationInheritance(UpdateConfigurationInheritanceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String