/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the input of the register on-premises instance
* operation.See Also:
AWS
* API Reference
The name of the on-premises instance to register.
*/ inline const Aws::String& GetInstanceName() const{ return m_instanceName; } /** *The name of the on-premises instance to register.
*/ inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; } /** *The name of the on-premises instance to register.
*/ inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; } /** *The name of the on-premises instance to register.
*/ inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); } /** *The name of the on-premises instance to register.
*/ inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); } /** *The name of the on-premises instance to register.
*/ inline RegisterOnPremisesInstanceRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;} /** *The name of the on-premises instance to register.
*/ inline RegisterOnPremisesInstanceRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;} /** *The name of the on-premises instance to register.
*/ inline RegisterOnPremisesInstanceRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;} /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline const Aws::String& GetIamSessionArn() const{ return m_iamSessionArn; } /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline bool IamSessionArnHasBeenSet() const { return m_iamSessionArnHasBeenSet; } /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline void SetIamSessionArn(const Aws::String& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = value; } /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline void SetIamSessionArn(Aws::String&& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = std::move(value); } /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline void SetIamSessionArn(const char* value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn.assign(value); } /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline RegisterOnPremisesInstanceRequest& WithIamSessionArn(const Aws::String& value) { SetIamSessionArn(value); return *this;} /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline RegisterOnPremisesInstanceRequest& WithIamSessionArn(Aws::String&& value) { SetIamSessionArn(std::move(value)); return *this;} /** *The ARN of the IAM session to associate with the on-premises instance.
*/ inline RegisterOnPremisesInstanceRequest& WithIamSessionArn(const char* value) { SetIamSessionArn(value); return *this;} /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; } /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; } /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; } /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); } /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); } /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline RegisterOnPremisesInstanceRequest& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;} /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline RegisterOnPremisesInstanceRequest& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;} /** *The ARN of the IAM user to associate with the on-premises instance.
*/ inline RegisterOnPremisesInstanceRequest& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;} private: Aws::String m_instanceName; bool m_instanceNameHasBeenSet = false; Aws::String m_iamSessionArn; bool m_iamSessionArnHasBeenSet = false; Aws::String m_iamUserArn; bool m_iamUserArnHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws