AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
43 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
44 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
45 inline UpdateDeletionProtectionRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
46 inline UpdateDeletionProtectionRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
47 inline UpdateDeletionProtectionRequest& WithArn(const char* value) { SetArn(value); return *this;}
49
51
55 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
58 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
59 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
60 inline UpdateDeletionProtectionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
61 inline UpdateDeletionProtectionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
62 inline UpdateDeletionProtectionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
64
66
69 inline bool GetDeletionProtected() const{ return m_deletionProtected; }
70 inline bool DeletionProtectedHasBeenSet() const { return m_deletionProtectedHasBeenSet; }
71 inline void SetDeletionProtected(bool value) { m_deletionProtectedHasBeenSet = true; m_deletionProtected = value; }
74 private:
75
76 Aws::String m_arn;
77 bool m_arnHasBeenSet = false;
78
79 Aws::String m_clientToken;
80 bool m_clientTokenHasBeenSet = false;
81
82 bool m_deletionProtected;
83 bool m_deletionProtectedHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace SSMIncidents
88} // namespace Aws
UpdateDeletionProtectionRequest & WithArn(const Aws::String &value)
UpdateDeletionProtectionRequest & WithDeletionProtected(bool value)
UpdateDeletionProtectionRequest & WithArn(const char *value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
UpdateDeletionProtectionRequest & WithClientToken(Aws::String &&value)
UpdateDeletionProtectionRequest & WithClientToken(const char *value)
UpdateDeletionProtectionRequest & WithClientToken(const Aws::String &value)
UpdateDeletionProtectionRequest & WithArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String