1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/guardduty/GuardDuty_EXPORTS.h>
8 #include <aws/guardduty/GuardDutyRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GuardDuty
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_GUARDDUTY_API GetMasterAccountRequest : public GuardDutyRequest
22   {
23   public:
24     GetMasterAccountRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "GetMasterAccount"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The unique ID of the detector of the GuardDuty member account.</p>
37      */
GetDetectorId()38     inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
39 
40     /**
41      * <p>The unique ID of the detector of the GuardDuty member account.</p>
42      */
DetectorIdHasBeenSet()43     inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 
45     /**
46      * <p>The unique ID of the detector of the GuardDuty member account.</p>
47      */
SetDetectorId(const Aws::String & value)48     inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
49 
50     /**
51      * <p>The unique ID of the detector of the GuardDuty member account.</p>
52      */
SetDetectorId(Aws::String && value)53     inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
54 
55     /**
56      * <p>The unique ID of the detector of the GuardDuty member account.</p>
57      */
SetDetectorId(const char * value)58     inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
59 
60     /**
61      * <p>The unique ID of the detector of the GuardDuty member account.</p>
62      */
WithDetectorId(const Aws::String & value)63     inline GetMasterAccountRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
64 
65     /**
66      * <p>The unique ID of the detector of the GuardDuty member account.</p>
67      */
WithDetectorId(Aws::String && value)68     inline GetMasterAccountRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
69 
70     /**
71      * <p>The unique ID of the detector of the GuardDuty member account.</p>
72      */
WithDetectorId(const char * value)73     inline GetMasterAccountRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
74 
75   private:
76 
77     Aws::String m_detectorId;
78     bool m_detectorIdHasBeenSet;
79   };
80 
81 } // namespace Model
82 } // namespace GuardDuty
83 } // namespace Aws
84