AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdateDeletionProtectionRequest.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/ssm-incidents/SSMIncidentsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace SSMIncidents
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMINCIDENTS_API UpdateDeletionProtectionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeletionProtection"; }
32
33 AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template<typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
44 template<typename ArnT = Aws::String>
45 UpdateDeletionProtectionRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
47
49
53 inline const Aws::String& GetClientToken() const { return m_clientToken; }
54 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
55 template<typename ClientTokenT = Aws::String>
56 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
57 template<typename ClientTokenT = Aws::String>
58 UpdateDeletionProtectionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
60
62
65 inline bool GetDeletionProtected() const { return m_deletionProtected; }
66 inline bool DeletionProtectedHasBeenSet() const { return m_deletionProtectedHasBeenSet; }
67 inline void SetDeletionProtected(bool value) { m_deletionProtectedHasBeenSet = true; m_deletionProtected = value; }
70 private:
71
72 Aws::String m_arn;
73 bool m_arnHasBeenSet = false;
74
76 bool m_clientTokenHasBeenSet = true;
77
78 bool m_deletionProtected{false};
79 bool m_deletionProtectedHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace SSMIncidents
84} // namespace Aws
UpdateDeletionProtectionRequest & WithDeletionProtected(bool value)
AWS_SSMINCIDENTS_API UpdateDeletionProtectionRequest()=default
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
UpdateDeletionProtectionRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String