AWS SDK for C++  1.9.109
AWS SDK for C++
AttachSecurityProfileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "AttachSecurityProfile"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
45 
49  inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
50 
54  inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
55 
59  inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
60 
64  inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
65 
69  inline AttachSecurityProfileRequest& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
70 
74  inline AttachSecurityProfileRequest& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
75 
79  inline AttachSecurityProfileRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
80 
81 
86  inline const Aws::String& GetSecurityProfileTargetArn() const{ return m_securityProfileTargetArn; }
87 
92  inline bool SecurityProfileTargetArnHasBeenSet() const { return m_securityProfileTargetArnHasBeenSet; }
93 
98  inline void SetSecurityProfileTargetArn(const Aws::String& value) { m_securityProfileTargetArnHasBeenSet = true; m_securityProfileTargetArn = value; }
99 
104  inline void SetSecurityProfileTargetArn(Aws::String&& value) { m_securityProfileTargetArnHasBeenSet = true; m_securityProfileTargetArn = std::move(value); }
105 
110  inline void SetSecurityProfileTargetArn(const char* value) { m_securityProfileTargetArnHasBeenSet = true; m_securityProfileTargetArn.assign(value); }
111 
116  inline AttachSecurityProfileRequest& WithSecurityProfileTargetArn(const Aws::String& value) { SetSecurityProfileTargetArn(value); return *this;}
117 
122  inline AttachSecurityProfileRequest& WithSecurityProfileTargetArn(Aws::String&& value) { SetSecurityProfileTargetArn(std::move(value)); return *this;}
123 
128  inline AttachSecurityProfileRequest& WithSecurityProfileTargetArn(const char* value) { SetSecurityProfileTargetArn(value); return *this;}
129 
130  private:
131 
132  Aws::String m_securityProfileName;
133  bool m_securityProfileNameHasBeenSet;
134 
135  Aws::String m_securityProfileTargetArn;
136  bool m_securityProfileTargetArnHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace IoT
141 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::AttachSecurityProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::AttachSecurityProfileRequest
Definition: AttachSecurityProfileRequest.h:26
Aws::IoT::Model::AttachSecurityProfileRequest::WithSecurityProfileTargetArn
AttachSecurityProfileRequest & WithSecurityProfileTargetArn(Aws::String &&value)
Definition: AttachSecurityProfileRequest.h:122
Aws::IoT::Model::AttachSecurityProfileRequest::WithSecurityProfileName
AttachSecurityProfileRequest & WithSecurityProfileName(Aws::String &&value)
Definition: AttachSecurityProfileRequest.h:74
Aws::IoT::Model::AttachSecurityProfileRequest::WithSecurityProfileTargetArn
AttachSecurityProfileRequest & WithSecurityProfileTargetArn(const char *value)
Definition: AttachSecurityProfileRequest.h:128
Aws::IoT::Model::AttachSecurityProfileRequest::WithSecurityProfileName
AttachSecurityProfileRequest & WithSecurityProfileName(const Aws::String &value)
Definition: AttachSecurityProfileRequest.h:69
Aws::IoT::Model::AttachSecurityProfileRequest::GetSecurityProfileTargetArn
const Aws::String & GetSecurityProfileTargetArn() const
Definition: AttachSecurityProfileRequest.h:86
Aws::IoT::Model::AttachSecurityProfileRequest::SetSecurityProfileName
void SetSecurityProfileName(const char *value)
Definition: AttachSecurityProfileRequest.h:64
Aws::IoT::Model::AttachSecurityProfileRequest::SecurityProfileNameHasBeenSet
bool SecurityProfileNameHasBeenSet() const
Definition: AttachSecurityProfileRequest.h:49
Aws::IoT::Model::AttachSecurityProfileRequest::AttachSecurityProfileRequest
AttachSecurityProfileRequest()
Aws::IoT::Model::AttachSecurityProfileRequest::SetSecurityProfileName
void SetSecurityProfileName(const Aws::String &value)
Definition: AttachSecurityProfileRequest.h:54
Aws::IoT::Model::AttachSecurityProfileRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::AttachSecurityProfileRequest::WithSecurityProfileTargetArn
AttachSecurityProfileRequest & WithSecurityProfileTargetArn(const Aws::String &value)
Definition: AttachSecurityProfileRequest.h:116
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AttachSecurityProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AttachSecurityProfileRequest.h:34
Aws::IoT::Model::AttachSecurityProfileRequest::SetSecurityProfileTargetArn
void SetSecurityProfileTargetArn(const char *value)
Definition: AttachSecurityProfileRequest.h:110
Aws::IoT::Model::AttachSecurityProfileRequest::SetSecurityProfileTargetArn
void SetSecurityProfileTargetArn(const Aws::String &value)
Definition: AttachSecurityProfileRequest.h:98
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AttachSecurityProfileRequest::SetSecurityProfileName
void SetSecurityProfileName(Aws::String &&value)
Definition: AttachSecurityProfileRequest.h:59
IoTRequest.h
Aws::IoT::Model::AttachSecurityProfileRequest::SecurityProfileTargetArnHasBeenSet
bool SecurityProfileTargetArnHasBeenSet() const
Definition: AttachSecurityProfileRequest.h:92
Aws::IoT::Model::AttachSecurityProfileRequest::GetSecurityProfileName
const Aws::String & GetSecurityProfileName() const
Definition: AttachSecurityProfileRequest.h:44
Aws::IoT::Model::AttachSecurityProfileRequest::SetSecurityProfileTargetArn
void SetSecurityProfileTargetArn(Aws::String &&value)
Definition: AttachSecurityProfileRequest.h:104
Aws::IoT::Model::AttachSecurityProfileRequest::WithSecurityProfileName
AttachSecurityProfileRequest & WithSecurityProfileName(const char *value)
Definition: AttachSecurityProfileRequest.h:79
IoT_EXPORTS.h