Skip to content

Commit

Permalink
Regenerate clients with LinkedHashMap in code generator
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyRyabinin committed Aug 1, 2024
1 parent 21a34c3 commit e7d499c
Show file tree
Hide file tree
Showing 32 changed files with 20,838 additions and 20,838 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ namespace Model

///@{
/**
* <p>The unique identifier of the session with the agent.</p>
* <p>The MIME type of the input data in the request. The default value is
* <code>application/json</code>.</p>
*/
inline const Aws::String& GetSessionId() const{ return m_sessionId; }
inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
inline InvokeAgentInitialResponse& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
inline InvokeAgentInitialResponse& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
inline InvokeAgentInitialResponse& WithSessionId(const char* value) { SetSessionId(value); return *this;}
inline const Aws::String& GetContentType() const{ return m_contentType; }
inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
inline InvokeAgentInitialResponse& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
inline InvokeAgentInitialResponse& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
inline InvokeAgentInitialResponse& WithContentType(const char* value) { SetContentType(value); return *this;}
///@}

///@{
Expand All @@ -64,28 +65,27 @@ namespace Model

///@{
/**
* <p>The MIME type of the input data in the request. The default value is
* <code>application/json</code>.</p>
* <p>The unique identifier of the session with the agent.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
inline InvokeAgentInitialResponse& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
inline InvokeAgentInitialResponse& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
inline InvokeAgentInitialResponse& WithContentType(const char* value) { SetContentType(value); return *this;}
inline const Aws::String& GetSessionId() const{ return m_sessionId; }
inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
inline InvokeAgentInitialResponse& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
inline InvokeAgentInitialResponse& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
inline InvokeAgentInitialResponse& WithSessionId(const char* value) { SetSessionId(value); return *this;}
///@}
private:

Aws::String m_sessionId;
bool m_sessionIdHasBeenSet = false;
Aws::String m_contentType;
bool m_contentTypeHasBeenSet = false;

Aws::String m_memoryId;
bool m_memoryIdHasBeenSet = false;

Aws::String m_contentType;
bool m_contentTypeHasBeenSet = false;
Aws::String m_sessionId;
bool m_sessionIdHasBeenSet = false;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ namespace Model
{

InvokeAgentInitialResponse::InvokeAgentInitialResponse() :
m_sessionIdHasBeenSet(false),
m_contentTypeHasBeenSet(false),
m_memoryIdHasBeenSet(false),
m_contentTypeHasBeenSet(false)
m_sessionIdHasBeenSet(false)
{
}

Expand All @@ -42,10 +42,10 @@ InvokeAgentInitialResponse& InvokeAgentInitialResponse::operator =(JsonView json

InvokeAgentInitialResponse::InvokeAgentInitialResponse(const Http::HeaderValueCollection& headers) : InvokeAgentInitialResponse()
{
const auto& sessionIdIter = headers.find("x-amz-bedrock-agent-session-id");
if(sessionIdIter != headers.end())
const auto& contentTypeIter = headers.find("x-amzn-bedrock-agent-content-type");
if(contentTypeIter != headers.end())
{
m_sessionId = sessionIdIter->second;
m_contentType = contentTypeIter->second;
}

const auto& memoryIdIter = headers.find("x-amz-bedrock-agent-memory-id");
Expand All @@ -54,10 +54,10 @@ InvokeAgentInitialResponse::InvokeAgentInitialResponse(const Http::HeaderValueCo
m_memoryId = memoryIdIter->second;
}

const auto& contentTypeIter = headers.find("x-amzn-bedrock-agent-content-type");
if(contentTypeIter != headers.end())
const auto& sessionIdIter = headers.find("x-amz-bedrock-agent-session-id");
if(sessionIdIter != headers.end())
{
m_contentType = contentTypeIter->second;
m_sessionId = sessionIdIter->second;
}

}
Expand Down
Loading

0 comments on commit e7d499c

Please sign in to comment.