AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
NewUserAgentDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/detective/Detective_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Detective {
20namespace Model {
21
29 public:
30 AWS_DETECTIVE_API NewUserAgentDetail() = default;
31 AWS_DETECTIVE_API NewUserAgentDetail(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
40 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
41 template <typename UserAgentT = Aws::String>
42 void SetUserAgent(UserAgentT&& value) {
43 m_userAgentHasBeenSet = true;
44 m_userAgent = std::forward<UserAgentT>(value);
45 }
46 template <typename UserAgentT = Aws::String>
47 NewUserAgentDetail& WithUserAgent(UserAgentT&& value) {
48 SetUserAgent(std::forward<UserAgentT>(value));
49 return *this;
50 }
52
54
57 inline bool GetIsNewForEntireAccount() const { return m_isNewForEntireAccount; }
58 inline bool IsNewForEntireAccountHasBeenSet() const { return m_isNewForEntireAccountHasBeenSet; }
59 inline void SetIsNewForEntireAccount(bool value) {
60 m_isNewForEntireAccountHasBeenSet = true;
61 m_isNewForEntireAccount = value;
62 }
65 return *this;
66 }
68 private:
69 Aws::String m_userAgent;
70
71 bool m_isNewForEntireAccount{false};
72 bool m_userAgentHasBeenSet = false;
73 bool m_isNewForEntireAccountHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Detective
78} // namespace Aws
AWS_DETECTIVE_API NewUserAgentDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
NewUserAgentDetail & WithUserAgent(UserAgentT &&value)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
NewUserAgentDetail & WithIsNewForEntireAccount(bool value)
AWS_DETECTIVE_API NewUserAgentDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API NewUserAgentDetail()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue