AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateTenantResourceAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SESV2 {
15namespace Model {
16
26 public:
27 AWS_SESV2_API CreateTenantResourceAssociationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTenantResourceAssociation"; }
34
35 AWS_SESV2_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetTenantName() const { return m_tenantName; }
42 inline bool TenantNameHasBeenSet() const { return m_tenantNameHasBeenSet; }
43 template <typename TenantNameT = Aws::String>
44 void SetTenantName(TenantNameT&& value) {
45 m_tenantNameHasBeenSet = true;
46 m_tenantName = std::forward<TenantNameT>(value);
47 }
48 template <typename TenantNameT = Aws::String>
50 SetTenantName(std::forward<TenantNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 template <typename ResourceArnT = Aws::String>
63 void SetResourceArn(ResourceArnT&& value) {
64 m_resourceArnHasBeenSet = true;
65 m_resourceArn = std::forward<ResourceArnT>(value);
66 }
67 template <typename ResourceArnT = Aws::String>
69 SetResourceArn(std::forward<ResourceArnT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_tenantName;
75
76 Aws::String m_resourceArn;
77 bool m_tenantNameHasBeenSet = false;
78 bool m_resourceArnHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace SESV2
83} // namespace Aws
AWS_SESV2_API Aws::String SerializePayload() const override
CreateTenantResourceAssociationRequest & WithResourceArn(ResourceArnT &&value)
CreateTenantResourceAssociationRequest & WithTenantName(TenantNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String