AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateCodeSecurityIntegrationRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/model/CreateIntegrationDetail.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/inspector2/model/IntegrationType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Inspector2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_INSPECTOR2_API CreateCodeSecurityIntegrationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCodeSecurityIntegration"; }
34
35 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
36
37
39
42 inline const CreateIntegrationDetail& GetDetails() const { return m_details; }
43 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
44 template<typename DetailsT = CreateIntegrationDetail>
45 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
46 template<typename DetailsT = CreateIntegrationDetail>
47 CreateCodeSecurityIntegrationRequest& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CreateCodeSecurityIntegrationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
67 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
68 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 CreateCodeSecurityIntegrationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
72 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
73 CreateCodeSecurityIntegrationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
74 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
75 }
77
79
82 inline IntegrationType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(IntegrationType value) { m_typeHasBeenSet = true; m_type = value; }
87 private:
88
90 bool m_detailsHasBeenSet = false;
91
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
96 bool m_tagsHasBeenSet = false;
97
99 bool m_typeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Inspector2
104} // namespace Aws
CreateCodeSecurityIntegrationRequest & WithType(IntegrationType value)
CreateCodeSecurityIntegrationRequest & WithDetails(DetailsT &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
CreateCodeSecurityIntegrationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String