/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the guardduty-2017-11-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.GuardDuty.Model { /// /// Container for the parameters to the InviteMembers operation. /// Invites Amazon Web Services accounts to become members of an organization administered /// by the Amazon Web Services account that invokes this API. If you are using Amazon /// Web Services Organizations to manager your GuardDuty environment, this step is not /// needed. For more information, see Managing /// accounts with Amazon Web Services Organizations. /// /// /// /// To invite Amazon Web Services accounts, the first step is to ensure that GuardDuty /// has been enabled in the potential member accounts. You can now invoke this API to /// add accounts by invitation. The invited accounts can either accept or decline the /// invitation from their GuardDuty accounts. Each invited Amazon Web Services account /// can choose to accept the invitation from only one Amazon Web Services account. For /// more information, see Managing /// GuardDuty accounts by invitation. /// /// /// /// After the invite has been accepted and you choose to disassociate a member account /// (by using DisassociateMembers) /// from your account, the details of the member account obtained by invoking CreateMembers, /// including the associated email addresses, will be retained. This is done so that you /// can invoke InviteMembers without the need to invoke CreateMembers /// again. To remove the details associated with a member account, you must also invoke /// DeleteMembers. /// /// /// public partial class InviteMembersRequest : AmazonGuardDutyRequest { private List _accountIds = new List(); private string _detectorId; private bool? _disableEmailNotification; private string _message; /// /// Gets and sets the property AccountIds. /// /// A list of account IDs of the accounts that you want to invite to GuardDuty as members. /// /// [AWSProperty(Required=true, Min=1, Max=50)] public List AccountIds { get { return this._accountIds; } set { this._accountIds = value; } } // Check to see if AccountIds property is set internal bool IsSetAccountIds() { return this._accountIds != null && this._accountIds.Count > 0; } /// /// Gets and sets the property DetectorId. /// /// The unique ID of the detector of the GuardDuty account that you want to invite members /// with. /// /// [AWSProperty(Required=true, Min=1, Max=300)] public string DetectorId { get { return this._detectorId; } set { this._detectorId = value; } } // Check to see if DetectorId property is set internal bool IsSetDetectorId() { return this._detectorId != null; } /// /// Gets and sets the property DisableEmailNotification. /// /// A Boolean value that specifies whether you want to disable email notification to the /// accounts that you are inviting to GuardDuty as members. /// /// public bool DisableEmailNotification { get { return this._disableEmailNotification.GetValueOrDefault(); } set { this._disableEmailNotification = value; } } // Check to see if DisableEmailNotification property is set internal bool IsSetDisableEmailNotification() { return this._disableEmailNotification.HasValue; } /// /// Gets and sets the property Message. /// /// The invitation message that you want to send to the accounts that you're inviting /// to GuardDuty as members. /// /// public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } } }