/** * 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 DevOpsGuru { namespace Model { /** */ class DescribeOrganizationOverviewRequest : public DevOpsGuruRequest { public: AWS_DEVOPSGURU_API DescribeOrganizationOverviewRequest(); // 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 "DescribeOrganizationOverview"; } AWS_DEVOPSGURU_API Aws::String SerializePayload() const override; /** *

The start of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * after this day.

*/ inline const Aws::Utils::DateTime& GetFromTime() const{ return m_fromTime; } /** *

The start of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * after this day.

*/ inline bool FromTimeHasBeenSet() const { return m_fromTimeHasBeenSet; } /** *

The start of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * after this day.

*/ inline void SetFromTime(const Aws::Utils::DateTime& value) { m_fromTimeHasBeenSet = true; m_fromTime = value; } /** *

The start of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * after this day.

*/ inline void SetFromTime(Aws::Utils::DateTime&& value) { m_fromTimeHasBeenSet = true; m_fromTime = std::move(value); } /** *

The start of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * after this day.

*/ inline DescribeOrganizationOverviewRequest& WithFromTime(const Aws::Utils::DateTime& value) { SetFromTime(value); return *this;} /** *

The start of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * after this day.

*/ inline DescribeOrganizationOverviewRequest& WithFromTime(Aws::Utils::DateTime&& value) { SetFromTime(std::move(value)); return *this;} /** *

The end of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * before this day. If this is not specified, then the current day is used.

*/ inline const Aws::Utils::DateTime& GetToTime() const{ return m_toTime; } /** *

The end of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * before this day. If this is not specified, then the current day is used.

*/ inline bool ToTimeHasBeenSet() const { return m_toTimeHasBeenSet; } /** *

The end of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * before this day. If this is not specified, then the current day is used.

*/ inline void SetToTime(const Aws::Utils::DateTime& value) { m_toTimeHasBeenSet = true; m_toTime = value; } /** *

The end of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * before this day. If this is not specified, then the current day is used.

*/ inline void SetToTime(Aws::Utils::DateTime&& value) { m_toTimeHasBeenSet = true; m_toTime = std::move(value); } /** *

The end of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * before this day. If this is not specified, then the current day is used.

*/ inline DescribeOrganizationOverviewRequest& WithToTime(const Aws::Utils::DateTime& value) { SetToTime(value); return *this;} /** *

The end of the time range passed in. The start time granularity is at the * day level. The floor of the start time is used. Returned information occurred * before this day. If this is not specified, then the current day is used.

*/ inline DescribeOrganizationOverviewRequest& WithToTime(Aws::Utils::DateTime&& value) { SetToTime(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account.

*/ inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } /** *

The ID of the Amazon Web Services account.

*/ inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } /** *

The ID of the Amazon Web Services account.

*/ inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } /** *

The ID of the Amazon Web Services account.

*/ inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } /** *

The ID of the Amazon Web Services account.

*/ inline DescribeOrganizationOverviewRequest& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

The ID of the Amazon Web Services account.

*/ inline DescribeOrganizationOverviewRequest& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account.

*/ inline DescribeOrganizationOverviewRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

The ID of the Amazon Web Services account.

*/ inline DescribeOrganizationOverviewRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } /** *

The ID of the Amazon Web Services account.

*/ inline DescribeOrganizationOverviewRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

The ID of the organizational unit.

*/ inline const Aws::Vector& GetOrganizationalUnitIds() const{ return m_organizationalUnitIds; } /** *

The ID of the organizational unit.

*/ inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; } /** *

The ID of the organizational unit.

*/ inline void SetOrganizationalUnitIds(const Aws::Vector& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = value; } /** *

The ID of the organizational unit.

*/ inline void SetOrganizationalUnitIds(Aws::Vector&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = std::move(value); } /** *

The ID of the organizational unit.

*/ inline DescribeOrganizationOverviewRequest& WithOrganizationalUnitIds(const Aws::Vector& value) { SetOrganizationalUnitIds(value); return *this;} /** *

The ID of the organizational unit.

*/ inline DescribeOrganizationOverviewRequest& WithOrganizationalUnitIds(Aws::Vector&& value) { SetOrganizationalUnitIds(std::move(value)); return *this;} /** *

The ID of the organizational unit.

*/ inline DescribeOrganizationOverviewRequest& AddOrganizationalUnitIds(const Aws::String& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(value); return *this; } /** *

The ID of the organizational unit.

*/ inline DescribeOrganizationOverviewRequest& AddOrganizationalUnitIds(Aws::String&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(std::move(value)); return *this; } /** *

The ID of the organizational unit.

*/ inline DescribeOrganizationOverviewRequest& AddOrganizationalUnitIds(const char* value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(value); return *this; } private: Aws::Utils::DateTime m_fromTime; bool m_fromTimeHasBeenSet = false; Aws::Utils::DateTime m_toTime; bool m_toTimeHasBeenSet = false; Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; Aws::Vector m_organizationalUnitIds; bool m_organizationalUnitIdsHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws