AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTemplateShareRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.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 WellArchitected
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WELLARCHITECTED_API CreateTemplateShareRequest();
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 "CreateTemplateShare"; }
32
33 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetTemplateArn() const{ return m_templateArn; }
41 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
42 inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; }
43 inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); }
44 inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); }
45 inline CreateTemplateShareRequest& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;}
46 inline CreateTemplateShareRequest& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;}
47 inline CreateTemplateShareRequest& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;}
49
51
52 inline const Aws::String& GetSharedWith() const{ return m_sharedWith; }
53 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
54 inline void SetSharedWith(const Aws::String& value) { m_sharedWithHasBeenSet = true; m_sharedWith = value; }
55 inline void SetSharedWith(Aws::String&& value) { m_sharedWithHasBeenSet = true; m_sharedWith = std::move(value); }
56 inline void SetSharedWith(const char* value) { m_sharedWithHasBeenSet = true; m_sharedWith.assign(value); }
57 inline CreateTemplateShareRequest& WithSharedWith(const Aws::String& value) { SetSharedWith(value); return *this;}
58 inline CreateTemplateShareRequest& WithSharedWith(Aws::String&& value) { SetSharedWith(std::move(value)); return *this;}
59 inline CreateTemplateShareRequest& WithSharedWith(const char* value) { SetSharedWith(value); return *this;}
61
63
64 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
65 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
66 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
67 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
68 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
70 inline CreateTemplateShareRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
71 inline CreateTemplateShareRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
73 private:
74
75 Aws::String m_templateArn;
76 bool m_templateArnHasBeenSet = false;
77
78 Aws::String m_sharedWith;
79 bool m_sharedWithHasBeenSet = false;
80
81 Aws::String m_clientRequestToken;
82 bool m_clientRequestTokenHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace WellArchitected
87} // namespace Aws
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateTemplateShareRequest & WithTemplateArn(Aws::String &&value)
CreateTemplateShareRequest & WithSharedWith(const Aws::String &value)
CreateTemplateShareRequest & WithSharedWith(Aws::String &&value)
CreateTemplateShareRequest & WithTemplateArn(const Aws::String &value)
CreateTemplateShareRequest & WithSharedWith(const char *value)
CreateTemplateShareRequest & WithClientRequestToken(Aws::String &&value)
CreateTemplateShareRequest & WithTemplateArn(const char *value)
CreateTemplateShareRequest & WithClientRequestToken(const char *value)
CreateTemplateShareRequest & WithClientRequestToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String