/** * 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 Shield { namespace Model { class AWS_SHIELD_API DescribeDRTAccessResult { public: DescribeDRTAccessResult(); DescribeDRTAccessResult(const Aws::AmazonWebServiceResult& result); DescribeDRTAccessResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS * account.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS * account.

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

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS * account.

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

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS * account.

*/ inline void SetRoleArn(const char* value) { m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS * account.

*/ inline DescribeDRTAccessResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS * account.

*/ inline DescribeDRTAccessResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS * account.

*/ inline DescribeDRTAccessResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline const Aws::Vector& GetLogBucketList() const{ return m_logBucketList; } /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline void SetLogBucketList(const Aws::Vector& value) { m_logBucketList = value; } /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline void SetLogBucketList(Aws::Vector&& value) { m_logBucketList = std::move(value); } /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline DescribeDRTAccessResult& WithLogBucketList(const Aws::Vector& value) { SetLogBucketList(value); return *this;} /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline DescribeDRTAccessResult& WithLogBucketList(Aws::Vector&& value) { SetLogBucketList(std::move(value)); return *this;} /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline DescribeDRTAccessResult& AddLogBucketList(const Aws::String& value) { m_logBucketList.push_back(value); return *this; } /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline DescribeDRTAccessResult& AddLogBucketList(Aws::String&& value) { m_logBucketList.push_back(std::move(value)); return *this; } /** *

The list of Amazon S3 buckets accessed by the DRT.

*/ inline DescribeDRTAccessResult& AddLogBucketList(const char* value) { m_logBucketList.push_back(value); return *this; } private: Aws::String m_roleArn; Aws::Vector m_logBucketList; }; } // namespace Model } // namespace Shield } // namespace Aws