AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
UpdateDependencyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/DependencyCriticality.h>
11
12#include <utility>
13
14namespace Aws {
15namespace resiliencehubv2 {
16namespace Model {
17
21 public:
22 AWS_RESILIENCEHUBV2_API UpdateDependencyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateDependency"; }
29
30 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
31
33
34 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
35 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
36 template <typename ServiceArnT = Aws::String>
37 void SetServiceArn(ServiceArnT&& value) {
38 m_serviceArnHasBeenSet = true;
39 m_serviceArn = std::forward<ServiceArnT>(value);
40 }
41 template <typename ServiceArnT = Aws::String>
43 SetServiceArn(std::forward<ServiceArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetDependencyId() const { return m_dependencyId; }
53 inline bool DependencyIdHasBeenSet() const { return m_dependencyIdHasBeenSet; }
54 template <typename DependencyIdT = Aws::String>
55 void SetDependencyId(DependencyIdT&& value) {
56 m_dependencyIdHasBeenSet = true;
57 m_dependencyId = std::forward<DependencyIdT>(value);
58 }
59 template <typename DependencyIdT = Aws::String>
60 UpdateDependencyRequest& WithDependencyId(DependencyIdT&& value) {
61 SetDependencyId(std::forward<DependencyIdT>(value));
62 return *this;
63 }
65
67
70 inline DependencyCriticality GetCriticality() const { return m_criticality; }
71 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
73 m_criticalityHasBeenSet = true;
74 m_criticality = value;
75 }
77 SetCriticality(value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetComment() const { return m_comment; }
87 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
88 template <typename CommentT = Aws::String>
89 void SetComment(CommentT&& value) {
90 m_commentHasBeenSet = true;
91 m_comment = std::forward<CommentT>(value);
92 }
93 template <typename CommentT = Aws::String>
95 SetComment(std::forward<CommentT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_serviceArn;
101
102 Aws::String m_dependencyId;
103
105
106 Aws::String m_comment;
107 bool m_serviceArnHasBeenSet = false;
108 bool m_dependencyIdHasBeenSet = false;
109 bool m_criticalityHasBeenSet = false;
110 bool m_commentHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace resiliencehubv2
115} // namespace Aws
AWS_RESILIENCEHUBV2_API UpdateDependencyRequest()=default
UpdateDependencyRequest & WithServiceArn(ServiceArnT &&value)
UpdateDependencyRequest & WithCriticality(DependencyCriticality value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
UpdateDependencyRequest & WithComment(CommentT &&value)
virtual const char * GetServiceRequestName() const override
UpdateDependencyRequest & WithDependencyId(DependencyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String