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/transcribe/TranscribeService_EXPORTS.h>
8 #include <aws/transcribe/model/RedactionType.h>
9 #include <aws/transcribe/model/RedactionOutput.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace TranscribeService
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>Settings for content redaction within a transcription job.</p><p><h3>See
29    * Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ContentRedaction">AWS
31    * API Reference</a></p>
32    */
33   class AWS_TRANSCRIBESERVICE_API ContentRedaction
34   {
35   public:
36     ContentRedaction();
37     ContentRedaction(Aws::Utils::Json::JsonView jsonValue);
38     ContentRedaction& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>Request parameter that defines the entities to be redacted. The only accepted
44      * value is <code>PII</code>.</p>
45      */
GetRedactionType()46     inline const RedactionType& GetRedactionType() const{ return m_redactionType; }
47 
48     /**
49      * <p>Request parameter that defines the entities to be redacted. The only accepted
50      * value is <code>PII</code>.</p>
51      */
RedactionTypeHasBeenSet()52     inline bool RedactionTypeHasBeenSet() const { return m_redactionTypeHasBeenSet; }
53 
54     /**
55      * <p>Request parameter that defines the entities to be redacted. The only accepted
56      * value is <code>PII</code>.</p>
57      */
SetRedactionType(const RedactionType & value)58     inline void SetRedactionType(const RedactionType& value) { m_redactionTypeHasBeenSet = true; m_redactionType = value; }
59 
60     /**
61      * <p>Request parameter that defines the entities to be redacted. The only accepted
62      * value is <code>PII</code>.</p>
63      */
SetRedactionType(RedactionType && value)64     inline void SetRedactionType(RedactionType&& value) { m_redactionTypeHasBeenSet = true; m_redactionType = std::move(value); }
65 
66     /**
67      * <p>Request parameter that defines the entities to be redacted. The only accepted
68      * value is <code>PII</code>.</p>
69      */
WithRedactionType(const RedactionType & value)70     inline ContentRedaction& WithRedactionType(const RedactionType& value) { SetRedactionType(value); return *this;}
71 
72     /**
73      * <p>Request parameter that defines the entities to be redacted. The only accepted
74      * value is <code>PII</code>.</p>
75      */
WithRedactionType(RedactionType && value)76     inline ContentRedaction& WithRedactionType(RedactionType&& value) { SetRedactionType(std::move(value)); return *this;}
77 
78 
79     /**
80      * <p>The output transcript file stored in either the default S3 bucket or in a
81      * bucket you specify.</p> <p>When you choose <code>redacted</code> Amazon
82      * Transcribe outputs only the redacted transcript.</p> <p>When you choose
83      * <code>redacted_and_unredacted</code> Amazon Transcribe outputs both the redacted
84      * and unredacted transcripts.</p>
85      */
GetRedactionOutput()86     inline const RedactionOutput& GetRedactionOutput() const{ return m_redactionOutput; }
87 
88     /**
89      * <p>The output transcript file stored in either the default S3 bucket or in a
90      * bucket you specify.</p> <p>When you choose <code>redacted</code> Amazon
91      * Transcribe outputs only the redacted transcript.</p> <p>When you choose
92      * <code>redacted_and_unredacted</code> Amazon Transcribe outputs both the redacted
93      * and unredacted transcripts.</p>
94      */
RedactionOutputHasBeenSet()95     inline bool RedactionOutputHasBeenSet() const { return m_redactionOutputHasBeenSet; }
96 
97     /**
98      * <p>The output transcript file stored in either the default S3 bucket or in a
99      * bucket you specify.</p> <p>When you choose <code>redacted</code> Amazon
100      * Transcribe outputs only the redacted transcript.</p> <p>When you choose
101      * <code>redacted_and_unredacted</code> Amazon Transcribe outputs both the redacted
102      * and unredacted transcripts.</p>
103      */
SetRedactionOutput(const RedactionOutput & value)104     inline void SetRedactionOutput(const RedactionOutput& value) { m_redactionOutputHasBeenSet = true; m_redactionOutput = value; }
105 
106     /**
107      * <p>The output transcript file stored in either the default S3 bucket or in a
108      * bucket you specify.</p> <p>When you choose <code>redacted</code> Amazon
109      * Transcribe outputs only the redacted transcript.</p> <p>When you choose
110      * <code>redacted_and_unredacted</code> Amazon Transcribe outputs both the redacted
111      * and unredacted transcripts.</p>
112      */
SetRedactionOutput(RedactionOutput && value)113     inline void SetRedactionOutput(RedactionOutput&& value) { m_redactionOutputHasBeenSet = true; m_redactionOutput = std::move(value); }
114 
115     /**
116      * <p>The output transcript file stored in either the default S3 bucket or in a
117      * bucket you specify.</p> <p>When you choose <code>redacted</code> Amazon
118      * Transcribe outputs only the redacted transcript.</p> <p>When you choose
119      * <code>redacted_and_unredacted</code> Amazon Transcribe outputs both the redacted
120      * and unredacted transcripts.</p>
121      */
WithRedactionOutput(const RedactionOutput & value)122     inline ContentRedaction& WithRedactionOutput(const RedactionOutput& value) { SetRedactionOutput(value); return *this;}
123 
124     /**
125      * <p>The output transcript file stored in either the default S3 bucket or in a
126      * bucket you specify.</p> <p>When you choose <code>redacted</code> Amazon
127      * Transcribe outputs only the redacted transcript.</p> <p>When you choose
128      * <code>redacted_and_unredacted</code> Amazon Transcribe outputs both the redacted
129      * and unredacted transcripts.</p>
130      */
WithRedactionOutput(RedactionOutput && value)131     inline ContentRedaction& WithRedactionOutput(RedactionOutput&& value) { SetRedactionOutput(std::move(value)); return *this;}
132 
133   private:
134 
135     RedactionType m_redactionType;
136     bool m_redactionTypeHasBeenSet;
137 
138     RedactionOutput m_redactionOutput;
139     bool m_redactionOutputHasBeenSet;
140   };
141 
142 } // namespace Model
143 } // namespace TranscribeService
144 } // namespace Aws
145