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

The ID of the Firewall Manager administrator account for this policy.

*/ inline const Aws::String& GetAdminAccountId() const{ return m_adminAccountId; } /** *

The ID of the Firewall Manager administrator account for this policy.

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

The ID of the Firewall Manager administrator account for this policy.

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

The ID of the Firewall Manager administrator account for this policy.

*/ inline void SetAdminAccountId(const char* value) { m_adminAccountId.assign(value); } /** *

The ID of the Firewall Manager administrator account for this policy.

*/ inline GetProtectionStatusResult& WithAdminAccountId(const Aws::String& value) { SetAdminAccountId(value); return *this;} /** *

The ID of the Firewall Manager administrator account for this policy.

*/ inline GetProtectionStatusResult& WithAdminAccountId(Aws::String&& value) { SetAdminAccountId(std::move(value)); return *this;} /** *

The ID of the Firewall Manager administrator account for this policy.

*/ inline GetProtectionStatusResult& WithAdminAccountId(const char* value) { SetAdminAccountId(value); return *this;} /** *

The service type that is protected by the policy. Currently, this is always * SHIELD_ADVANCED.

*/ inline const SecurityServiceType& GetServiceType() const{ return m_serviceType; } /** *

The service type that is protected by the policy. Currently, this is always * SHIELD_ADVANCED.

*/ inline void SetServiceType(const SecurityServiceType& value) { m_serviceType = value; } /** *

The service type that is protected by the policy. Currently, this is always * SHIELD_ADVANCED.

*/ inline void SetServiceType(SecurityServiceType&& value) { m_serviceType = std::move(value); } /** *

The service type that is protected by the policy. Currently, this is always * SHIELD_ADVANCED.

*/ inline GetProtectionStatusResult& WithServiceType(const SecurityServiceType& value) { SetServiceType(value); return *this;} /** *

The service type that is protected by the policy. Currently, this is always * SHIELD_ADVANCED.

*/ inline GetProtectionStatusResult& WithServiceType(SecurityServiceType&& value) { SetServiceType(std::move(value)); return *this;} /** *

Details about the attack, including the following:

  • Attack * type

  • Account ID

  • ARN of the resource * attacked

  • Start time of the attack

  • End time * of the attack (ongoing attacks will not have an end time)

The * details are in JSON format.

*/ inline const Aws::String& GetData() const{ return m_data; } /** *

Details about the attack, including the following:

  • Attack * type

  • Account ID

  • ARN of the resource * attacked

  • Start time of the attack

  • End time * of the attack (ongoing attacks will not have an end time)

The * details are in JSON format.

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

Details about the attack, including the following:

  • Attack * type

  • Account ID

  • ARN of the resource * attacked

  • Start time of the attack

  • End time * of the attack (ongoing attacks will not have an end time)

The * details are in JSON format.

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

Details about the attack, including the following:

  • Attack * type

  • Account ID

  • ARN of the resource * attacked

  • Start time of the attack

  • End time * of the attack (ongoing attacks will not have an end time)

The * details are in JSON format.

*/ inline void SetData(const char* value) { m_data.assign(value); } /** *

Details about the attack, including the following:

  • Attack * type

  • Account ID

  • ARN of the resource * attacked

  • Start time of the attack

  • End time * of the attack (ongoing attacks will not have an end time)

The * details are in JSON format.

*/ inline GetProtectionStatusResult& WithData(const Aws::String& value) { SetData(value); return *this;} /** *

Details about the attack, including the following:

  • Attack * type

  • Account ID

  • ARN of the resource * attacked

  • Start time of the attack

  • End time * of the attack (ongoing attacks will not have an end time)

The * details are in JSON format.

*/ inline GetProtectionStatusResult& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} /** *

Details about the attack, including the following:

  • Attack * type

  • Account ID

  • ARN of the resource * attacked

  • Start time of the attack

  • End time * of the attack (ongoing attacks will not have an end time)

The * details are in JSON format.

*/ inline GetProtectionStatusResult& WithData(const char* value) { SetData(value); return *this;} /** *

If you have more objects than the number that you specified for * MaxResults in the request, the response includes a * NextToken value. To list more objects, submit another * GetProtectionStatus request, and specify the NextToken * value from the response in the NextToken value in the next * request.

Amazon Web Services SDKs provide auto-pagination that identify * NextToken in a response and make subsequent request calls * automatically on your behalf. However, this feature is not supported by * GetProtectionStatus. You must submit subsequent requests with * NextToken using your own processes.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If you have more objects than the number that you specified for * MaxResults in the request, the response includes a * NextToken value. To list more objects, submit another * GetProtectionStatus request, and specify the NextToken * value from the response in the NextToken value in the next * request.

Amazon Web Services SDKs provide auto-pagination that identify * NextToken in a response and make subsequent request calls * automatically on your behalf. However, this feature is not supported by * GetProtectionStatus. You must submit subsequent requests with * NextToken using your own processes.

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

If you have more objects than the number that you specified for * MaxResults in the request, the response includes a * NextToken value. To list more objects, submit another * GetProtectionStatus request, and specify the NextToken * value from the response in the NextToken value in the next * request.

Amazon Web Services SDKs provide auto-pagination that identify * NextToken in a response and make subsequent request calls * automatically on your behalf. However, this feature is not supported by * GetProtectionStatus. You must submit subsequent requests with * NextToken using your own processes.

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

If you have more objects than the number that you specified for * MaxResults in the request, the response includes a * NextToken value. To list more objects, submit another * GetProtectionStatus request, and specify the NextToken * value from the response in the NextToken value in the next * request.

Amazon Web Services SDKs provide auto-pagination that identify * NextToken in a response and make subsequent request calls * automatically on your behalf. However, this feature is not supported by * GetProtectionStatus. You must submit subsequent requests with * NextToken using your own processes.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If you have more objects than the number that you specified for * MaxResults in the request, the response includes a * NextToken value. To list more objects, submit another * GetProtectionStatus request, and specify the NextToken * value from the response in the NextToken value in the next * request.

Amazon Web Services SDKs provide auto-pagination that identify * NextToken in a response and make subsequent request calls * automatically on your behalf. However, this feature is not supported by * GetProtectionStatus. You must submit subsequent requests with * NextToken using your own processes.

*/ inline GetProtectionStatusResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If you have more objects than the number that you specified for * MaxResults in the request, the response includes a * NextToken value. To list more objects, submit another * GetProtectionStatus request, and specify the NextToken * value from the response in the NextToken value in the next * request.

Amazon Web Services SDKs provide auto-pagination that identify * NextToken in a response and make subsequent request calls * automatically on your behalf. However, this feature is not supported by * GetProtectionStatus. You must submit subsequent requests with * NextToken using your own processes.

*/ inline GetProtectionStatusResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If you have more objects than the number that you specified for * MaxResults in the request, the response includes a * NextToken value. To list more objects, submit another * GetProtectionStatus request, and specify the NextToken * value from the response in the NextToken value in the next * request.

Amazon Web Services SDKs provide auto-pagination that identify * NextToken in a response and make subsequent request calls * automatically on your behalf. However, this feature is not supported by * GetProtectionStatus. You must submit subsequent requests with * NextToken using your own processes.

*/ inline GetProtectionStatusResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetProtectionStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetProtectionStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetProtectionStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_adminAccountId; SecurityServiceType m_serviceType; Aws::String m_data; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace FMS } // namespace Aws