Record Class ClientImplAdditionalMethodsSection
java.lang.Object
java.lang.Record
software.amazon.smithy.java.codegen.client.sections.ClientImplAdditionalMethodsSection
- Record Components:
client- Client shape that these methods will be added to.async- true if the client is an async client.
- All Implemented Interfaces:
software.amazon.smithy.utils.CodeSection
public record ClientImplAdditionalMethodsSection(software.amazon.smithy.model.shapes.ServiceShape client, boolean async)
extends Record
implements software.amazon.smithy.utils.CodeSection
This section provides a hook for adding additional methods to the generated client implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionClientImplAdditionalMethodsSection(software.amazon.smithy.model.shapes.ServiceShape client, boolean async) Creates an instance of aClientImplAdditionalMethodsSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanasync()Returns the value of theasyncrecord component.software.amazon.smithy.model.shapes.ServiceShapeclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.utils.CodeSection
sectionName
-
Constructor Details
-
ClientImplAdditionalMethodsSection
public ClientImplAdditionalMethodsSection(software.amazon.smithy.model.shapes.ServiceShape client, boolean async) Creates an instance of aClientImplAdditionalMethodsSectionrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
client
public software.amazon.smithy.model.shapes.ServiceShape client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
async
public boolean async()Returns the value of theasyncrecord component.- Returns:
- the value of the
asyncrecord component
-