AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NotifyApplicationStateRequest.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
8#include <aws/AWSMigrationHub/MigrationHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/AWSMigrationHub/model/ApplicationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MigrationHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MIGRATIONHUB_API NotifyApplicationStateRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "NotifyApplicationState"; }
33
34 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
35
36 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
45 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
46 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
47 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
48 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
49 inline NotifyApplicationStateRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
50 inline NotifyApplicationStateRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
51 inline NotifyApplicationStateRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
53
55
58 inline const ApplicationStatus& GetStatus() const{ return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(const ApplicationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
61 inline void SetStatus(ApplicationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
62 inline NotifyApplicationStateRequest& WithStatus(const ApplicationStatus& value) { SetStatus(value); return *this;}
63 inline NotifyApplicationStateRequest& WithStatus(ApplicationStatus&& value) { SetStatus(std::move(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; }
71 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
72 inline void SetUpdateDateTime(const Aws::Utils::DateTime& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = value; }
73 inline void SetUpdateDateTime(Aws::Utils::DateTime&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::move(value); }
77
79
83 inline bool GetDryRun() const{ return m_dryRun; }
84 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
85 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
86 inline NotifyApplicationStateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
88 private:
89
90 Aws::String m_applicationId;
91 bool m_applicationIdHasBeenSet = false;
92
93 ApplicationStatus m_status;
94 bool m_statusHasBeenSet = false;
95
96 Aws::Utils::DateTime m_updateDateTime;
97 bool m_updateDateTimeHasBeenSet = false;
98
99 bool m_dryRun;
100 bool m_dryRunHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace MigrationHub
105} // namespace Aws
AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
NotifyApplicationStateRequest & WithStatus(ApplicationStatus &&value)
NotifyApplicationStateRequest & WithApplicationId(const Aws::String &value)
NotifyApplicationStateRequest & WithUpdateDateTime(Aws::Utils::DateTime &&value)
NotifyApplicationStateRequest & WithApplicationId(Aws::String &&value)
NotifyApplicationStateRequest & WithUpdateDateTime(const Aws::Utils::DateTime &value)
NotifyApplicationStateRequest & WithStatus(const ApplicationStatus &value)
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
NotifyApplicationStateRequest & WithApplicationId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String