Package odata.msgraph.client.complex
Class KeyCredential
- java.lang.Object
-
- odata.msgraph.client.complex.KeyCredential
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class KeyCredential extends Object implements com.github.davidmoten.odata.client.ODataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyCredential.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected byte[]customKeyIdentifierprotected StringdisplayNameprotected OffsetDateTimeendDateTimeprotected byte[]keyprotected UUIDkeyIdprotected StringodataTypeprotected OffsetDateTimestartDateTimeprotected Stringtypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected Stringusage
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyCredential()
-
Method Summary
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
customKeyIdentifier
protected byte[] customKeyIdentifier
-
displayName
protected String displayName
-
endDateTime
protected OffsetDateTime endDateTime
-
key
protected byte[] key
-
keyId
protected UUID keyId
-
startDateTime
protected OffsetDateTime startDateTime
-
type
protected String type
-
usage
protected String usage
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getCustomKeyIdentifier
public Optional<byte[]> getCustomKeyIdentifier()
-
withCustomKeyIdentifier
public KeyCredential withCustomKeyIdentifier(byte[] customKeyIdentifier)
-
withDisplayName
public KeyCredential withDisplayName(String displayName)
-
getEndDateTime
public Optional<OffsetDateTime> getEndDateTime()
-
withEndDateTime
public KeyCredential withEndDateTime(OffsetDateTime endDateTime)
-
getKey
public Optional<byte[]> getKey()
-
withKey
public KeyCredential withKey(byte[] key)
-
withKeyId
public KeyCredential withKeyId(UUID keyId)
-
getStartDateTime
public Optional<OffsetDateTime> getStartDateTime()
-
withStartDateTime
public KeyCredential withStartDateTime(OffsetDateTime startDateTime)
-
withType
public KeyCredential withType(String type)
-
withUsage
public KeyCredential withUsage(String usage)
-
withUnmappedField
public KeyCredential withUnmappedField(String name, Object value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static KeyCredential.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-