/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeDeploy { namespace Model { /** *

Information about an on-premises instance.

See Also:

AWS * API Reference

*/ class InstanceInfo { public: AWS_CODEDEPLOY_API InstanceInfo(); AWS_CODEDEPLOY_API InstanceInfo(Aws::Utils::Json::JsonView jsonValue); AWS_CODEDEPLOY_API InstanceInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the on-premises instance.

*/ inline const Aws::String& GetInstanceName() const{ return m_instanceName; } /** *

The name of the on-premises instance.

*/ inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; } /** *

The name of the on-premises instance.

*/ inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; } /** *

The name of the on-premises instance.

*/ inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); } /** *

The name of the on-premises instance.

*/ inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); } /** *

The name of the on-premises instance.

*/ inline InstanceInfo& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;} /** *

The name of the on-premises instance.

*/ inline InstanceInfo& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;} /** *

The name of the on-premises instance.

*/ inline InstanceInfo& WithInstanceName(const char* value) { SetInstanceName(value); return *this;} /** *

The ARN of the IAM session associated with the on-premises instance.

*/ inline const Aws::String& GetIamSessionArn() const{ return m_iamSessionArn; } /** *

The ARN of the IAM session associated with the on-premises instance.

*/ inline bool IamSessionArnHasBeenSet() const { return m_iamSessionArnHasBeenSet; } /** *

The ARN of the IAM session associated with the on-premises instance.

*/ inline void SetIamSessionArn(const Aws::String& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = value; } /** *

The ARN of the IAM session associated 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 associated with the on-premises instance.

*/ inline void SetIamSessionArn(const char* value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn.assign(value); } /** *

The ARN of the IAM session associated with the on-premises instance.

*/ inline InstanceInfo& WithIamSessionArn(const Aws::String& value) { SetIamSessionArn(value); return *this;} /** *

The ARN of the IAM session associated with the on-premises instance.

*/ inline InstanceInfo& WithIamSessionArn(Aws::String&& value) { SetIamSessionArn(std::move(value)); return *this;} /** *

The ARN of the IAM session associated with the on-premises instance.

*/ inline InstanceInfo& WithIamSessionArn(const char* value) { SetIamSessionArn(value); return *this;} /** *

The IAM user ARN associated with the on-premises instance.

*/ inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; } /** *

The IAM user ARN associated with the on-premises instance.

*/ inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; } /** *

The IAM user ARN associated with the on-premises instance.

*/ inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; } /** *

The IAM user ARN associated with the on-premises instance.

*/ inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); } /** *

The IAM user ARN associated with the on-premises instance.

*/ inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); } /** *

The IAM user ARN associated with the on-premises instance.

*/ inline InstanceInfo& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;} /** *

The IAM user ARN associated with the on-premises instance.

*/ inline InstanceInfo& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;} /** *

The IAM user ARN associated with the on-premises instance.

*/ inline InstanceInfo& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;} /** *

The ARN of the on-premises instance.

*/ inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; } /** *

The ARN of the on-premises instance.

*/ inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; } /** *

The ARN of the on-premises instance.

*/ inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; } /** *

The ARN of the on-premises instance.

*/ inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); } /** *

The ARN of the on-premises instance.

*/ inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); } /** *

The ARN of the on-premises instance.

*/ inline InstanceInfo& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;} /** *

The ARN of the on-premises instance.

*/ inline InstanceInfo& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;} /** *

The ARN of the on-premises instance.

*/ inline InstanceInfo& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;} /** *

The time at which the on-premises instance was registered.

*/ inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; } /** *

The time at which the on-premises instance was registered.

*/ inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; } /** *

The time at which the on-premises instance was registered.

*/ inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; } /** *

The time at which the on-premises instance was registered.

*/ inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::move(value); } /** *

The time at which the on-premises instance was registered.

*/ inline InstanceInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;} /** *

The time at which the on-premises instance was registered.

*/ inline InstanceInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(std::move(value)); return *this;} /** *

If the on-premises instance was deregistered, the time at which the * on-premises instance was deregistered.

*/ inline const Aws::Utils::DateTime& GetDeregisterTime() const{ return m_deregisterTime; } /** *

If the on-premises instance was deregistered, the time at which the * on-premises instance was deregistered.

*/ inline bool DeregisterTimeHasBeenSet() const { return m_deregisterTimeHasBeenSet; } /** *

If the on-premises instance was deregistered, the time at which the * on-premises instance was deregistered.

*/ inline void SetDeregisterTime(const Aws::Utils::DateTime& value) { m_deregisterTimeHasBeenSet = true; m_deregisterTime = value; } /** *

If the on-premises instance was deregistered, the time at which the * on-premises instance was deregistered.

*/ inline void SetDeregisterTime(Aws::Utils::DateTime&& value) { m_deregisterTimeHasBeenSet = true; m_deregisterTime = std::move(value); } /** *

If the on-premises instance was deregistered, the time at which the * on-premises instance was deregistered.

*/ inline InstanceInfo& WithDeregisterTime(const Aws::Utils::DateTime& value) { SetDeregisterTime(value); return *this;} /** *

If the on-premises instance was deregistered, the time at which the * on-premises instance was deregistered.

*/ inline InstanceInfo& WithDeregisterTime(Aws::Utils::DateTime&& value) { SetDeregisterTime(std::move(value)); return *this;} /** *

The tags currently associated with the on-premises instance.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags currently associated with the on-premises instance.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags currently associated with the on-premises instance.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags currently associated with the on-premises instance.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags currently associated with the on-premises instance.

*/ inline InstanceInfo& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags currently associated with the on-premises instance.

*/ inline InstanceInfo& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags currently associated with the on-premises instance.

*/ inline InstanceInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags currently associated with the on-premises instance.

*/ inline InstanceInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(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; Aws::String m_instanceArn; bool m_instanceArnHasBeenSet = false; Aws::Utils::DateTime m_registerTime; bool m_registerTimeHasBeenSet = false; Aws::Utils::DateTime m_deregisterTime; bool m_deregisterTimeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws