AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DetectStackDriftRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudFormation {
16namespace Model {
17
21 public:
22 AWS_CLOUDFORMATION_API DetectStackDriftRequest() = 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 "DetectStackDrift"; }
29
30 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetStackName() const { return m_stackName; }
41 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
42 template <typename StackNameT = Aws::String>
43 void SetStackName(StackNameT&& value) {
44 m_stackNameHasBeenSet = true;
45 m_stackName = std::forward<StackNameT>(value);
46 }
47 template <typename StackNameT = Aws::String>
49 SetStackName(std::forward<StackNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetLogicalResourceIds() const { return m_logicalResourceIds; }
59 inline bool LogicalResourceIdsHasBeenSet() const { return m_logicalResourceIdsHasBeenSet; }
60 template <typename LogicalResourceIdsT = Aws::Vector<Aws::String>>
61 void SetLogicalResourceIds(LogicalResourceIdsT&& value) {
62 m_logicalResourceIdsHasBeenSet = true;
63 m_logicalResourceIds = std::forward<LogicalResourceIdsT>(value);
64 }
65 template <typename LogicalResourceIdsT = Aws::Vector<Aws::String>>
66 DetectStackDriftRequest& WithLogicalResourceIds(LogicalResourceIdsT&& value) {
67 SetLogicalResourceIds(std::forward<LogicalResourceIdsT>(value));
68 return *this;
69 }
70 template <typename LogicalResourceIdsT = Aws::String>
71 DetectStackDriftRequest& AddLogicalResourceIds(LogicalResourceIdsT&& value) {
72 m_logicalResourceIdsHasBeenSet = true;
73 m_logicalResourceIds.emplace_back(std::forward<LogicalResourceIdsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_stackName;
79
80 Aws::Vector<Aws::String> m_logicalResourceIds;
81 bool m_stackNameHasBeenSet = false;
82 bool m_logicalResourceIdsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudFormation
87} // namespace Aws
AWS_CLOUDFORMATION_API DetectStackDriftRequest()=default
DetectStackDriftRequest & WithLogicalResourceIds(LogicalResourceIdsT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DetectStackDriftRequest & AddLogicalResourceIds(LogicalResourceIdsT &&value)
const Aws::Vector< Aws::String > & GetLogicalResourceIds() const
DetectStackDriftRequest & WithStackName(StackNameT &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector