AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRoleAliasRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoT
17{
18namespace Model
19{
20
24 {
25 public:
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 "CreateRoleAlias"; }
33
34 AWS_IOT_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetRoleAlias() const{ return m_roleAlias; }
43 inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
44 inline void SetRoleAlias(const Aws::String& value) { m_roleAliasHasBeenSet = true; m_roleAlias = value; }
45 inline void SetRoleAlias(Aws::String&& value) { m_roleAliasHasBeenSet = true; m_roleAlias = std::move(value); }
46 inline void SetRoleAlias(const char* value) { m_roleAliasHasBeenSet = true; m_roleAlias.assign(value); }
47 inline CreateRoleAliasRequest& WithRoleAlias(const Aws::String& value) { SetRoleAlias(value); return *this;}
48 inline CreateRoleAliasRequest& WithRoleAlias(Aws::String&& value) { SetRoleAlias(std::move(value)); return *this;}
49 inline CreateRoleAliasRequest& WithRoleAlias(const char* value) { SetRoleAlias(value); return *this;}
51
53
56 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
57 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
59 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
60 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
61 inline CreateRoleAliasRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
62 inline CreateRoleAliasRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
63 inline CreateRoleAliasRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
65
67
72 inline int GetCredentialDurationSeconds() const{ return m_credentialDurationSeconds; }
73 inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
74 inline void SetCredentialDurationSeconds(int value) { m_credentialDurationSecondsHasBeenSet = true; m_credentialDurationSeconds = value; }
77
79
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateRoleAliasRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline CreateRoleAliasRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateRoleAliasRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline CreateRoleAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_roleAlias;
98 bool m_roleAliasHasBeenSet = false;
99
100 Aws::String m_roleArn;
101 bool m_roleArnHasBeenSet = false;
102
103 int m_credentialDurationSeconds;
104 bool m_credentialDurationSecondsHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoT
112} // namespace Aws
CreateRoleAliasRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRoleAliasRequest & AddTags(const Tag &value)
CreateRoleAliasRequest & WithRoleAlias(const Aws::String &value)
CreateRoleAliasRequest & WithRoleArn(const Aws::String &value)
CreateRoleAliasRequest & WithRoleArn(Aws::String &&value)
CreateRoleAliasRequest & WithRoleAlias(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateRoleAliasRequest & WithRoleAlias(const char *value)
const Aws::Vector< Tag > & GetTags() const
CreateRoleAliasRequest & AddTags(Tag &&value)
CreateRoleAliasRequest & WithRoleArn(const char *value)
CreateRoleAliasRequest & WithCredentialDurationSeconds(int value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetRoleAlias(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
CreateRoleAliasRequest & WithTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector