AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterOnPremisesInstanceRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CodeDeploy
15{
16namespace Model
17{
18
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 "RegisterOnPremisesInstance"; }
35
36 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
46 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
47 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
48 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
49 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
51 inline RegisterOnPremisesInstanceRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
52 inline RegisterOnPremisesInstanceRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
54
56
59 inline const Aws::String& GetIamSessionArn() const{ return m_iamSessionArn; }
60 inline bool IamSessionArnHasBeenSet() const { return m_iamSessionArnHasBeenSet; }
61 inline void SetIamSessionArn(const Aws::String& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = value; }
62 inline void SetIamSessionArn(Aws::String&& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = std::move(value); }
63 inline void SetIamSessionArn(const char* value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn.assign(value); }
65 inline RegisterOnPremisesInstanceRequest& WithIamSessionArn(Aws::String&& value) { SetIamSessionArn(std::move(value)); return *this;}
66 inline RegisterOnPremisesInstanceRequest& WithIamSessionArn(const char* value) { SetIamSessionArn(value); return *this;}
68
70
73 inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
74 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
75 inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
76 inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
77 inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
78 inline RegisterOnPremisesInstanceRequest& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
79 inline RegisterOnPremisesInstanceRequest& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
80 inline RegisterOnPremisesInstanceRequest& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
82 private:
83
84 Aws::String m_instanceName;
85 bool m_instanceNameHasBeenSet = false;
86
87 Aws::String m_iamSessionArn;
88 bool m_iamSessionArnHasBeenSet = false;
89
90 Aws::String m_iamUserArn;
91 bool m_iamUserArnHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CodeDeploy
96} // namespace Aws
RegisterOnPremisesInstanceRequest & WithIamUserArn(Aws::String &&value)
RegisterOnPremisesInstanceRequest & WithIamSessionArn(Aws::String &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
RegisterOnPremisesInstanceRequest & WithIamUserArn(const Aws::String &value)
RegisterOnPremisesInstanceRequest & WithIamSessionArn(const Aws::String &value)
RegisterOnPremisesInstanceRequest & WithInstanceName(const Aws::String &value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterOnPremisesInstanceRequest & WithIamUserArn(const char *value)
RegisterOnPremisesInstanceRequest & WithIamSessionArn(const char *value)
RegisterOnPremisesInstanceRequest & WithInstanceName(const char *value)
RegisterOnPremisesInstanceRequest & WithInstanceName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String