AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociateConfigurationRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/CodeSecurityResource.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API AssociateConfigurationRequest() = default;
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const CodeSecurityResource& GetResource() const { return m_resource; }
45 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
46 template<typename ResourceT = CodeSecurityResource>
47 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
48 template<typename ResourceT = CodeSecurityResource>
49 AssociateConfigurationRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
51
53
56 inline const Aws::String& GetScanConfigurationArn() const { return m_scanConfigurationArn; }
57 inline bool ScanConfigurationArnHasBeenSet() const { return m_scanConfigurationArnHasBeenSet; }
58 template<typename ScanConfigurationArnT = Aws::String>
59 void SetScanConfigurationArn(ScanConfigurationArnT&& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = std::forward<ScanConfigurationArnT>(value); }
60 template<typename ScanConfigurationArnT = Aws::String>
61 AssociateConfigurationRequest& WithScanConfigurationArn(ScanConfigurationArnT&& value) { SetScanConfigurationArn(std::forward<ScanConfigurationArnT>(value)); return *this;}
63 private:
64
65 CodeSecurityResource m_resource;
66 bool m_resourceHasBeenSet = false;
67
68 Aws::String m_scanConfigurationArn;
69 bool m_scanConfigurationArnHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Inspector2
74} // namespace Aws
AWS_INSPECTOR2_API AssociateConfigurationRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociateConfigurationRequest & WithScanConfigurationArn(ScanConfigurationArnT &&value)
AssociateConfigurationRequest & WithResource(ResourceT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API AssociateConfigurationRequest()=default
AWS_INSPECTOR2_API AssociateConfigurationRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue