AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateServiceActionRequest.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/servicecatalog/ServiceCatalogRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/servicecatalog/model/ServiceActionDefinitionKey.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ServiceCatalog
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SERVICECATALOG_API UpdateServiceActionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateServiceAction"; }
33
34 AWS_SERVICECATALOG_API Aws::String SerializePayload() const override;
35
36 AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template<typename IdT = Aws::String>
46 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
47 template<typename IdT = Aws::String>
48 UpdateServiceActionRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 UpdateServiceActionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::Map<ServiceActionDefinitionKey, Aws::String>& GetDefinition() const { return m_definition; }
68 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
69 template<typename DefinitionT = Aws::Map<ServiceActionDefinitionKey, Aws::String>>
70 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
71 template<typename DefinitionT = Aws::Map<ServiceActionDefinitionKey, Aws::String>>
72 UpdateServiceActionRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
74 m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 UpdateServiceActionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
95 inline const Aws::String& GetAcceptLanguage() const { return m_acceptLanguage; }
96 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
97 template<typename AcceptLanguageT = Aws::String>
98 void SetAcceptLanguage(AcceptLanguageT&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::forward<AcceptLanguageT>(value); }
99 template<typename AcceptLanguageT = Aws::String>
100 UpdateServiceActionRequest& WithAcceptLanguage(AcceptLanguageT&& value) { SetAcceptLanguage(std::forward<AcceptLanguageT>(value)); return *this;}
102 private:
103
104 Aws::String m_id;
105 bool m_idHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
111 bool m_definitionHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
116 Aws::String m_acceptLanguage;
117 bool m_acceptLanguageHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ServiceCatalog
122} // namespace Aws
const Aws::Map< ServiceActionDefinitionKey, Aws::String > & GetDefinition() const
UpdateServiceActionRequest & WithDescription(DescriptionT &&value)
AWS_SERVICECATALOG_API Aws::String SerializePayload() const override
AWS_SERVICECATALOG_API UpdateServiceActionRequest()=default
UpdateServiceActionRequest & WithAcceptLanguage(AcceptLanguageT &&value)
AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateServiceActionRequest & WithDefinition(DefinitionT &&value)
UpdateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey key, Aws::String value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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