AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTaskProtectionRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace Model
18{
19
23 {
24 public:
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 "UpdateTaskProtection"; }
32
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetCluster() const{ return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
46 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
47 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
48 inline UpdateTaskProtectionRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
49 inline UpdateTaskProtectionRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
50 inline UpdateTaskProtectionRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetTasks() const{ return m_tasks; }
58 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
59 inline void SetTasks(const Aws::Vector<Aws::String>& value) { m_tasksHasBeenSet = true; m_tasks = value; }
60 inline void SetTasks(Aws::Vector<Aws::String>&& value) { m_tasksHasBeenSet = true; m_tasks = std::move(value); }
61 inline UpdateTaskProtectionRequest& WithTasks(const Aws::Vector<Aws::String>& value) { SetTasks(value); return *this;}
62 inline UpdateTaskProtectionRequest& WithTasks(Aws::Vector<Aws::String>&& value) { SetTasks(std::move(value)); return *this;}
63 inline UpdateTaskProtectionRequest& AddTasks(const Aws::String& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
64 inline UpdateTaskProtectionRequest& AddTasks(Aws::String&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; }
65 inline UpdateTaskProtectionRequest& AddTasks(const char* value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
67
69
73 inline bool GetProtectionEnabled() const{ return m_protectionEnabled; }
74 inline bool ProtectionEnabledHasBeenSet() const { return m_protectionEnabledHasBeenSet; }
75 inline void SetProtectionEnabled(bool value) { m_protectionEnabledHasBeenSet = true; m_protectionEnabled = value; }
76 inline UpdateTaskProtectionRequest& WithProtectionEnabled(bool value) { SetProtectionEnabled(value); return *this;}
78
80
89 inline int GetExpiresInMinutes() const{ return m_expiresInMinutes; }
90 inline bool ExpiresInMinutesHasBeenSet() const { return m_expiresInMinutesHasBeenSet; }
91 inline void SetExpiresInMinutes(int value) { m_expiresInMinutesHasBeenSet = true; m_expiresInMinutes = value; }
92 inline UpdateTaskProtectionRequest& WithExpiresInMinutes(int value) { SetExpiresInMinutes(value); return *this;}
94 private:
95
96 Aws::String m_cluster;
97 bool m_clusterHasBeenSet = false;
98
100 bool m_tasksHasBeenSet = false;
101
102 bool m_protectionEnabled;
103 bool m_protectionEnabledHasBeenSet = false;
104
105 int m_expiresInMinutes;
106 bool m_expiresInMinutesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ECS
111} // namespace Aws
UpdateTaskProtectionRequest & WithCluster(const char *value)
UpdateTaskProtectionRequest & WithProtectionEnabled(bool value)
void SetTasks(const Aws::Vector< Aws::String > &value)
UpdateTaskProtectionRequest & WithCluster(const Aws::String &value)
UpdateTaskProtectionRequest & WithTasks(Aws::Vector< Aws::String > &&value)
UpdateTaskProtectionRequest & AddTasks(const char *value)
UpdateTaskProtectionRequest & WithExpiresInMinutes(int value)
UpdateTaskProtectionRequest & WithTasks(const Aws::Vector< Aws::String > &value)
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTaskProtectionRequest & WithCluster(Aws::String &&value)
UpdateTaskProtectionRequest & AddTasks(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTasks() const
UpdateTaskProtectionRequest & AddTasks(const Aws::String &value)
void SetTasks(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector