This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UpdateOrganizationConfigurationRequest.h

147 lines
5.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/guardduty/GuardDuty_EXPORTS.h>
#include <aws/guardduty/GuardDutyRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/guardduty/model/OrganizationDataSourceConfigurations.h>
#include <utility>
namespace Aws
{
namespace GuardDuty
{
namespace Model
{
/**
*/
class AWS_GUARDDUTY_API UpdateOrganizationConfigurationRequest : public GuardDutyRequest
{
public:
UpdateOrganizationConfigurationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateOrganizationConfiguration"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline UpdateOrganizationConfigurationRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline UpdateOrganizationConfigurationRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
/**
* <p>The ID of the detector to update the delegated administrator for.</p>
*/
inline UpdateOrganizationConfigurationRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
/**
* <p>Indicates whether to automatically enable member accounts in the
* organization.</p>
*/
inline bool GetAutoEnable() const{ return m_autoEnable; }
/**
* <p>Indicates whether to automatically enable member accounts in the
* organization.</p>
*/
inline bool AutoEnableHasBeenSet() const { return m_autoEnableHasBeenSet; }
/**
* <p>Indicates whether to automatically enable member accounts in the
* organization.</p>
*/
inline void SetAutoEnable(bool value) { m_autoEnableHasBeenSet = true; m_autoEnable = value; }
/**
* <p>Indicates whether to automatically enable member accounts in the
* organization.</p>
*/
inline UpdateOrganizationConfigurationRequest& WithAutoEnable(bool value) { SetAutoEnable(value); return *this;}
/**
* <p>An object describes which data sources will be updated.</p>
*/
inline const OrganizationDataSourceConfigurations& GetDataSources() const{ return m_dataSources; }
/**
* <p>An object describes which data sources will be updated.</p>
*/
inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
/**
* <p>An object describes which data sources will be updated.</p>
*/
inline void SetDataSources(const OrganizationDataSourceConfigurations& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
/**
* <p>An object describes which data sources will be updated.</p>
*/
inline void SetDataSources(OrganizationDataSourceConfigurations&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
/**
* <p>An object describes which data sources will be updated.</p>
*/
inline UpdateOrganizationConfigurationRequest& WithDataSources(const OrganizationDataSourceConfigurations& value) { SetDataSources(value); return *this;}
/**
* <p>An object describes which data sources will be updated.</p>
*/
inline UpdateOrganizationConfigurationRequest& WithDataSources(OrganizationDataSourceConfigurations&& value) { SetDataSources(std::move(value)); return *this;}
private:
Aws::String m_detectorId;
bool m_detectorIdHasBeenSet;
bool m_autoEnable;
bool m_autoEnableHasBeenSet;
OrganizationDataSourceConfigurations m_dataSources;
bool m_dataSourcesHasBeenSet;
};
} // namespace Model
} // namespace GuardDuty
} // namespace Aws