/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { class AWS_SECURITYHUB_API DescribeHubResult { public: DescribeHubResult(); DescribeHubResult(const Aws::AmazonWebServiceResult& result); DescribeHubResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the Hub resource that was retrieved.

*/ inline const Aws::String& GetHubArn() const{ return m_hubArn; } /** *

The ARN of the Hub resource that was retrieved.

*/ inline void SetHubArn(const Aws::String& value) { m_hubArn = value; } /** *

The ARN of the Hub resource that was retrieved.

*/ inline void SetHubArn(Aws::String&& value) { m_hubArn = std::move(value); } /** *

The ARN of the Hub resource that was retrieved.

*/ inline void SetHubArn(const char* value) { m_hubArn.assign(value); } /** *

The ARN of the Hub resource that was retrieved.

*/ inline DescribeHubResult& WithHubArn(const Aws::String& value) { SetHubArn(value); return *this;} /** *

The ARN of the Hub resource that was retrieved.

*/ inline DescribeHubResult& WithHubArn(Aws::String&& value) { SetHubArn(std::move(value)); return *this;} /** *

The ARN of the Hub resource that was retrieved.

*/ inline DescribeHubResult& WithHubArn(const char* value) { SetHubArn(value); return *this;} /** *

The date and time when Security Hub was enabled in the account.

*/ inline const Aws::String& GetSubscribedAt() const{ return m_subscribedAt; } /** *

The date and time when Security Hub was enabled in the account.

*/ inline void SetSubscribedAt(const Aws::String& value) { m_subscribedAt = value; } /** *

The date and time when Security Hub was enabled in the account.

*/ inline void SetSubscribedAt(Aws::String&& value) { m_subscribedAt = std::move(value); } /** *

The date and time when Security Hub was enabled in the account.

*/ inline void SetSubscribedAt(const char* value) { m_subscribedAt.assign(value); } /** *

The date and time when Security Hub was enabled in the account.

*/ inline DescribeHubResult& WithSubscribedAt(const Aws::String& value) { SetSubscribedAt(value); return *this;} /** *

The date and time when Security Hub was enabled in the account.

*/ inline DescribeHubResult& WithSubscribedAt(Aws::String&& value) { SetSubscribedAt(std::move(value)); return *this;} /** *

The date and time when Security Hub was enabled in the account.

*/ inline DescribeHubResult& WithSubscribedAt(const char* value) { SetSubscribedAt(value); return *this;} /** *

Whether to automatically enable new controls when they are added to standards * that are enabled.

If set to true, then new controls for * enabled standards are enabled automatically. If set to false, then * new controls are not enabled.

*/ inline bool GetAutoEnableControls() const{ return m_autoEnableControls; } /** *

Whether to automatically enable new controls when they are added to standards * that are enabled.

If set to true, then new controls for * enabled standards are enabled automatically. If set to false, then * new controls are not enabled.

*/ inline void SetAutoEnableControls(bool value) { m_autoEnableControls = value; } /** *

Whether to automatically enable new controls when they are added to standards * that are enabled.

If set to true, then new controls for * enabled standards are enabled automatically. If set to false, then * new controls are not enabled.

*/ inline DescribeHubResult& WithAutoEnableControls(bool value) { SetAutoEnableControls(value); return *this;} private: Aws::String m_hubArn; Aws::String m_subscribedAt; bool m_autoEnableControls; }; } // namespace Model } // namespace SecurityHub } // namespace Aws