AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutNotificationChannelRequest.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace FMS
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutNotificationChannel"; }
31
32 AWS_FMS_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
43 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
44 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
45 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
46 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
47 inline PutNotificationChannelRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
48 inline PutNotificationChannelRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
49 inline PutNotificationChannelRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
51
53
57 inline const Aws::String& GetSnsRoleName() const{ return m_snsRoleName; }
58 inline bool SnsRoleNameHasBeenSet() const { return m_snsRoleNameHasBeenSet; }
59 inline void SetSnsRoleName(const Aws::String& value) { m_snsRoleNameHasBeenSet = true; m_snsRoleName = value; }
60 inline void SetSnsRoleName(Aws::String&& value) { m_snsRoleNameHasBeenSet = true; m_snsRoleName = std::move(value); }
61 inline void SetSnsRoleName(const char* value) { m_snsRoleNameHasBeenSet = true; m_snsRoleName.assign(value); }
62 inline PutNotificationChannelRequest& WithSnsRoleName(const Aws::String& value) { SetSnsRoleName(value); return *this;}
63 inline PutNotificationChannelRequest& WithSnsRoleName(Aws::String&& value) { SetSnsRoleName(std::move(value)); return *this;}
64 inline PutNotificationChannelRequest& WithSnsRoleName(const char* value) { SetSnsRoleName(value); return *this;}
66 private:
67
68 Aws::String m_snsTopicArn;
69 bool m_snsTopicArnHasBeenSet = false;
70
71 Aws::String m_snsRoleName;
72 bool m_snsRoleNameHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace FMS
77} // namespace Aws
PutNotificationChannelRequest & WithSnsRoleName(const Aws::String &value)
PutNotificationChannelRequest & WithSnsRoleName(Aws::String &&value)
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutNotificationChannelRequest & WithSnsTopicArn(Aws::String &&value)
PutNotificationChannelRequest & WithSnsTopicArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_FMS_API Aws::String SerializePayload() const override
PutNotificationChannelRequest & WithSnsTopicArn(const char *value)
PutNotificationChannelRequest & WithSnsRoleName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String